kill flags & options
-15, SIGTERM
Gracefully terminate a process. This is the default signal.
kill 1234
kill -15 1234
-9, SIGKILL
Force-kill a process immediately. Cannot be caught or ignored.
kill -9 1234
-l
List all available signal names.
kill -l
-s
Send a specific signal by name.
kill -s HUP 1234
kill -s USR1 1234
-1, SIGHUP
Hang up signal. Often used to reload daemon configuration.
kill -1 $(pidof nginx)
-2, SIGINT
Interrupt signal. Same as pressing Ctrl+C.
kill -2 1234
-STOP, -CONT
Pause and resume a process.
kill -STOP 1234
kill -CONT 1234
killall
Kill processes by name instead of PID. Separate command but related.
killall node
killall -9 python