The top command is a commonly used command to view the usage of system resources and the process that occupies the most system resources. Top displays all processes in the form of columns, occupying the most CPU
The top command is a commonly used command to view the usage of system resources and the process that occupies the most system resources. Top displays all processes in the form of columns. the processes that occupy the most CPU resources are displayed at the top.
The ps command can list running processes.
The pstree command can also display process information. It displays processes in the form of a tree.
The kill command can kill a process based on the process ID. You can use the ps-A, top, or grep command to obtain the process ID. Technically speaking, the kill command can send any signal to a process. You can use kill-KILL or kill-9 to kill stubborn processes.
Given a search keyword, The pgrep command returns all process IDs that match the keyword.
The pkill and killall commands can kill a process based on the process name.
The renice command is used to change the nice value of a process. Nice value indicates the priority of the process. The nice value of-19 is a very high priority. On the contrary, 19 is a very low priority. 0 is the default priority. To run the renice command, you must use the process ID.