π‘ Linux Process & Signal Reference
π‘ Linux Process & Signal Reference
Complete reference of Linux signals, process states, and process management commands with examples
Process States
Kill Hierarchy
Quick Commands
| R | Running / Runnable |
| S | Sleeping (interruptible) |
| D | Disk sleep (uninterruptible) |
| Z | Zombie (defunct) |
| T | Stopped / Traced |
| I | Idle (kernel thread) |
Kill Hierarchy
1. Try SIGTERM (15) first β graceful
2. Wait a few seconds
3. Try SIGINT (2) β interrupt
4. Last resort: SIGKILL (9) β force
Never kill PID 1 (init/systemd)
Never kill D-state processes (I/O wait)
2. Wait a few seconds
3. Try SIGINT (2) β interrupt
4. Last resort: SIGKILL (9) β force
Never kill PID 1 (init/systemd)
Never kill D-state processes (I/O wait)
Quick Commands
kill -l β list all signalsps aux --sort=-%mem β by memorypgrep -f pattern β find by namepstree -p β process tree