info > KILL(9)

๐Ÿ“› NAME

kill โ€” send a signal to processes, causing them to terminate or otherwise act upon receiving the signal; or list information about signals.

๐Ÿš€ Quick Reference

Use CaseCommandDescription
Terminate process by PID (default TERM)kill 1234Send SIGTERM to process 1234
Force kill (cannot be caught/ignored)kill -9 1234
kill -KILL 1234
Send SIGKILL
Hang up (reload config, close terminal)kill -HUP 1234Send SIGHUP
Send signal to a process groupkill -TERM -1234Send to all processes in group 1234
Test if process exists (no signal sent)kill -0 1234Success if process 1234 is alive
List all signal nameskill -lShow one name per line
Get the number for a signal namekill -l HUPPrint the numeric value (e.g., 1)
Show a table of signals with descriptionskill -tOutputs number, name, description
Avoid shell builtin/wrapperenv kill ...Call the real kill binary directly

๐Ÿ“‹ Synopsis

kill [-s SIGNAL | --signal SIGNAL | -SIGNAL] PID...
kill [-l | --list | -t | --table] [SIGNAL]...

๐Ÿ“– Description

Due to shell aliases and built-in kill functions, using an unadorned kill interactively or in a script may get you different functionality than described here. Invoke it via env (i.e., env kill ...) to avoid interference from the shell.

๐Ÿ”น First Form: Sending a Signal

The first form sends a signal to all PID arguments. The default signal is TERM. The special signal number 0 does not denote a valid signal, but can be used to test whether the PID arguments specify processes to which a signal could be sent.

If PID is positive, the signal is sent to the process with that ID. If PID is zero, the signal is sent to all processes in the process group of the current process. If PID is -1, the signal is sent to all processes for which the user has permission to send a signal. If PID is less than -1, the signal is sent to all processes in the process group whose absolute value equals PID.

If PID is not positive, a systemโ€‘dependent set of system processes is excluded from the list.

If a negative PID argument is desired as the first one, it should be preceded by --. However, as a common extension to POSIX, -- is not required with kill -SIGNAL -PID. The following commands are equivalent:

kill -15 -1
kill -TERM -1
kill -s TERM -- -1
kill -- -1

The first form succeeds if every PID argument specifies at least one process that the signal was sent to.

๐Ÿ”น Second Form: Listing Signals

Either the -l/--list option or the -t/--table option must be specified. Without any SIGNAL argument, all supported signals are listed. The output of -l or --list is a list of the signal names, one per line; if SIGNAL is already a name, the signal number is printed instead. The output of -t or --table is a table of signal numbers, names, and descriptions. This form succeeds if all SIGNAL arguments are valid and if there is no output error.

๐Ÿ”น Signal Specifications

A SIGNAL may be a signal name like HUP, or a signal number like 1, or an exit status of a process terminated by the signal. A signal name can be given in canonical form or prefixed by SIG. The case of the letters is ignored, except for the -SIGNAL option which must use upper case to avoid ambiguity with lower case option letters.

See Signal specifications for a list of supported signal names and numbers.

โš™๏ธ Options

The following options are available:

These are described in more detail under Common options.

๐Ÿ”— See Also

Common options for --help and --version behavior, Signal specifications for a complete list of signal names and numbers.

KILL(9)
๐Ÿ“› NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ Synopsis ๐Ÿ“– Description
๐Ÿ”น First Form: Sending a Signal ๐Ÿ”น Second Form: Listing Signals ๐Ÿ”น Signal Specifications
โš™๏ธ Options ๐Ÿ”— See Also

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-09 17:37 @216.73.216.249
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!