|KILL(1)||General Commands Manual||KILL(1)|
kill — terminate
or signal a process
kill utility sends a signal to the
process(es) specified by the pid operand(s). If no
signal is specified,
SIGTERM is used.
Only the superuser may send signals to other users' processes.
The options are as follows:
If no operand is given, display the names of all the signals.
The following PIDs have special meanings:
Some of the more commonly used signals:
For a more complete list, consult the sigaction(2) manual page.
A signal number of 0 (
kill -0 pid) checks
the validity of a certain PID, to see if it exists. An exit code of 0 means
that the specified process exists.
kill utility exits 0 on
success, and >0 if an error occurs.
Forcibly terminate process ID 1234:
$ kill -9 1234
# kill -HUP 1
kill utility is compliant with the
IEEE Std 1003.1-2008 (“POSIX.1”)
-signal_number syntax is
marked by IEEE Std 1003.1-2008
(“POSIX.1”) as being an X/Open System Interfaces
kill command appeared in
Version 3 AT&T UNIX in section 8 of the
|August 16, 2016||OpenBSD-6.5|