Processes
cheat sheet · Linux https://lab.dimsanych.ru/en/wiki/processes/Cheat sheet
-
ps aux --sort=-%cpu | headtop CPU users -
ps aux --sort=-%mem | headtop memory users -
ps -eo pid,stat,%cpu,%mem,etime,comm --sort=-%cpu | head -
pgrep -a namefind by name -
pkill -f patternkill by command-line pattern -
kill 1234gracefully (SIGTERM) -
kill -9 1234forcefully (SIGKILL) -
kill -HUP 1234tell the daemon to reload its config -
renice -n 5 -p 1234a running process's priority