Six interactive exercises covering top, htop, signal theory, job control, and system load diagnosis — the core toolkit for Linux system administration.
top interactively and interpret its columns and headerhtop and understand its advantages over toptop is installed on virtually every Linux system — it is your first line of investigation.Type top in the terminal below, then press q to quit the simulated output.
htop adds CPU core bars, scrollable process lists, and mouse support — a significant upgrade from plain top.Type htop to launch the simulation.
Use ps aux --sort=-%cpu to find the rogue process, then kill <PID> to terminate it.
top or ps aux --sort=-%cpu | head -5ps -p 4821 -o pid,user,cmd,etime — confirm it is what you thinkkill 4821 (SIGTERM) first — always give a process a chance to clean upkill -9 4821 (SIGKILL)
| Signal | Number | Behavior | Use When |
|---|---|---|---|
| SIGHUP | 1 | Hang up — many daemons reload config on this signal | Reload nginx, sshd config without restart |
| SIGTERM | 15 | Terminate gracefully — process can catch and clean up | Default kill; always try this first |
| SIGKILL | 9 | Kill immediately — kernel enforced, cannot be caught | Last resort; process ignoring SIGTERM |
Practice sending signals below. Try: kill -1 7712, kill -15 7712, then kill -9 7712.
kill does not actually "kill" by default — it sends SIGTERM (15), which is a polite request to shut down. The process may ignore it. Only SIGKILL (9) is guaranteed to terminate (the kernel handles it, not the process). Never use SIGKILL on database processes — you risk data corruption.
Follow the 7-step job control workflow in the simulated terminal.
sleep 100 & — start a background jobjobs — verify it is runningfg %1 — bring it to the foregroundCtrl+Z — suspend the foreground process (type ctrl+z)bg %1 — resume it in the backgrounddisown %1 — detach job from the shellnohup sleep 200 & — start a new hangup-immune process
command & — Start directly in background (appended ampersand)Ctrl+Z — Suspend foreground process (sends SIGTSTP)bg %1 — Resume job 1 in the backgroundfg %1 — Bring job 1 to the foregroundjobs — List all current shell jobsnohup command & — Run in background, immune to hangup (survives logout)disown %1 — Remove job from shell's job table (similar effect to nohup)
Type uptime, vmstat, or iostat to see system diagnostics.