A compact tool used by init scripts to send signals to the whole process tree during shutdown or recovery. 13.06.2026 | reading time: 3 min On a multiuser Linux box, shutting down cleanly means asking every process to stop; `killall5` is the traditional helper used by init scripts to send a signal across almost the entire PID space so services and user processes can terminate in an orderly fashion. Shutdown recipe A common, practical sequence used in shutdown scripts is to first request graceful termination and then force remaining processes; for example: ``` killall5 -TERM sleep 2 killall5 -KILL ``` This sequence first broadcasts SIGTERM so daemons can exit cleanly, waits briefly, and then uses SIGKILL to remove stubborn processes. What to try safely Test `killall5` only inside containers or throwaway VMs; a safe approach is to start disposable background jobs with `sleep` and run the shutdown recipe there so you can observe the effect without risking a real host; always avoid running it on production systems as root unless you intend a full shutdown. Key options and caveats Remember: `killall5` is typically invoked by init scripts and therefore requires root privileges and is potentially destructive; it is intended to target most processes system-wide and is not a process-name based killer, so prefer it in controlled shutdown contexts and know that modern systems using systemd often use `systemctl` alternatives for finer control. Useful companions When managing processes at shutdown or during recovery, pair `killall5` with process inspection and service control tools so you can diagnose before you kill; common companions include `ps` for inspection, `systemctl` for service lifecycle, and `strace` or logs when debugging why a process won't exit. Final note `killall5` is a blunt and effective instrument: use it deliberately during runlevel changes or shutdown scripts, test it in isolated environments, and when working with modern distributions consider the systemd-native commands for more granular control; if you want to deepen your Linux skills and prepare for certification, explore focused training and exam preparation such as the intensive courses at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. processes boot-process utilities troubleshooting