1. View all processes in the system
PS aux is generally used in Unix, Ps-le is generally used in Linux.
2. Field description of the process list
3, check the health status of the system
The top command executes the following results:
The three items which are framed are important indicators for judging the health of the system.
The head 5 line is the key data to judge the health of the system, the following describes the meaning of each line.
First line:
Where load average determines whether the value of the load threshold 1 is based on the number of cups cores to determine. If it is a single core then the threshold is 1, if it is 8 cores then the threshold is 8.
Second line:
Where zombie represents the process being terminated but has not been terminated. If the zombie has been greater than 0 over a period of time, it indicates that a process has failed to terminate due to an error during termination.
Third line:
The main view is the CPU percentage of the idle CPU, for example 99.7%id, the smaller the value, the larger the load.
Line four:
Line five:
4. View Process Tree Pstree
5. View the available process signals kill-l
The process signals are described as follows:
6. Restarting the process and forcing the process to terminate
Format like kill-Signal code PID
After the parent process is killed, the child process is killed.
7. Kill the process according to the process name Killall
The Pkill command can also kill a process based on the process name.
8, according to terminal number kick out user Pkill
Although the Killall command can also kill the process based on the process name, the Pkill command can also kick the user based on the terminal number.
Specific examples include:
The process management of Linux Learning