To view and manage processes on Ubuntu, you can use several commands in the terminal. The most common command is ps, which stands for process status. This command can display information about a selection of the active processes.
For example, to view all running processes, you can use:
ps aux
Here, a stands for all users, u displays the output in a user-oriented format, and x adds processes without a controlling terminal.
Another useful command is top, which provides a dynamic real-time view of the running system. Simply type:
top
In the top interface, you can see a list of processes, their CPU and memory usage, and other details. You can also sort and filter processes based on various criteria.
To manage processes, you can use the kill command to terminate a process. First, find the process ID (PID) using ps or top, then use:
kill PID
Replace PID with the actual process ID.
For more advanced process management, you might want to use htop, which is an interactive process viewer for Unix systems. It is a text-mode application that allows you to monitor system processes interactively and manage them easily.
If you're working in a cloud environment like Tencent Cloud, you can also use their management console to monitor and manage processes running on your cloud servers. Tencent Cloud provides a variety of tools and services to help you manage your cloud infrastructure efficiently.