List Processes

Show running processes.

ps
ps aux
ps auxf
ps -u username

Top - Live Monitor

Interactive process viewer.

top
htop

Kill 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
disown

Nohup

Run immune to hangups.

nohup command &

Nice Priority

Set process priority.

nice -n 10 command
renice -n 5 -p PID

Process Info

Detailed process information.

ps -p PID -o comm,pid,%cpu,%mem
pgrep process_name
pidof process_name

Common 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