kill <pid>Sends SIGTERM (15) asking the process to exit cleanly.
Example
kill 1337Sends signals to processes — terminate gracefully, force-kill, reload or pause.
sudo apt install procpskill <pid>Sends SIGTERM (15) asking the process to exit cleanly.
Example
kill 1337kill -9 <pid>SIGKILL: ends the process immediately. It cannot clean up, so use it last.
Example
kill -9 1337kill -HUP <pid>SIGHUP: many daemons reload their configuration on this signal.
Example
kill -HUP $(pidof nginx)kill -STOP <pid>Freezes a process without killing it — useful to preserve a suspicious process for memory capture.
Example
kill -STOP 1337kill -CONT <pid>Resumes a stopped process.
Example
kill -CONT 1337kill -lLists every signal name and number.
kill -0 <pid>Checks a process exists without sending anything.
Example
kill -0 1337 && echo alivepkill <name>Signals processes by name; -f matches the full command line.
Example
pkill -f "python3 server.py"pkill -u <user>Ends every process of a user — part of locking out a compromised account.
Example
sudo pkill -u mallorykillall <name>Signals every process with that exact name.
Example
killall firefoxpgrep -l <name>Previews which processes a pattern matches before you kill them.
Example
pgrep -l ssh