List all processes running on the system
List tree view of all processes running on the system
List processes showing status of processes
ps -aux
ps -efH
ps -el
Find process by name, also show its pid
pgrep -l httpd
Kill process matching specified name
pkill httpd
killall httpd
Show all process names running by specific user
pgrep -u user -l
Kill process with exact specified name
pkill -x vi
Find all processes not own by specified user
pgrep -v -u user -l
List all kill signals
kill -l
Most useful signals
Kill a terminal running by specified user
Set priority of the process
nice [from -20 to 19]
nice -n 10 ping google.com
nice -n 1 httpd
(The higher the number the lower the priority)
Change priority of the process
renice -n 5 -p 1234
renice -n 10 $(pgrep httpd)
CPU info in pseudo fs
cat /proc/cpuinfo