Process management Tools
View process
Pstree Show Process Tree
-P: Display PID
Ps
Search process
PS | Grep
Pgrep
Pidof
Uptime
Free
Top
The first line: The current system time system boot up to now the time elapsed the current number of users system in 1, 5, 15 minutes of the average load
equivalent to uptime command; Interactive button: l
Note: The smaller the average load value, the more idle the system is, and if it is above 1, the current system load is too high
second line: Shows the current total process volume with the individual program in what state (Running,sleeping,stopped,zombie)
Note: The last zombie value, if not 0, requires a look at which process is in a zombie state.
The third line: The overall CPU load is displayed, if it is multi-core, you can use the number 1 key to toggle the display mode
Us:user Space user Run program consumes CPU percentage
Sy:system percentage of CPU used to run the kernel
Ni:nice the percentage of CPU that processes that have changed the priority of the user process space
Id:idle Idle CPU Percentage
Wa:wait to wait I/O takes time
Hi:hardware Interrupt hard key interrupt consumes CPU percentage
Si:software Interrupt Soft Key interrupt consumes CPU percentage
St:stolen, percentage of "stolen" by virtual machine
Line four: Physical memory usage line fifth: Swap partition condition press M to toggle display mode
Htop
Iotop
glances
Vmstat
Iostat
Dstat
Management process
Signal Man 7 SIGNAL
Show All Signals Kill-l | Drop-l
1) SIGHUP do not restart the process and let it reread the configuration file
2) SIGINT equivalent to CTRL + C
3) Sigquit equivalent to Ctrl+\
9) SIGKILL Force abort the process of running
SIGTERM process of normal abort operation
) Sigcont Continue
() SIGSTOP Sleep
Kill
Killall
Pkill
A detailed description of Linux process management tools