List Processes
Show running processes.
ps
ps aux
ps auxf
ps -u usernameTop - Live Monitor
Interactive process viewer.
top
htopKill Processes
Terminate processes.
kill PID
kill -9 PID
killall process_name
pkill -f pattern
Background Jobs
Job control commands.
command &
jobs
fg %1
bg %1
disownNohup
Run immune to hangups.
nohup command &Nice Priority
Set process priority.
nice -n 10 command
renice -n 5 -p PIDProcess Info
Detailed process information.
ps -p PID -o comm,pid,%cpu,%mem
pgrep process_name
pidof process_nameCommon mistakes / Pitfalls
- People often copy a command or pattern without adapting placeholders, which can break production workflows unexpectedly.
- It is easy to forget environment-specific differences, so always verify behavior in your shell, runtime, or API gateway before shipping.
- Many errors come from skipping small validation steps, so test with realistic sample input before relying on the result.
Last updated: February 2026