
k
kill(1)kill(1)
NAME
kill - send a signal to a process; terminate a process
SYNOPSIS
kill
kill
kill
Obsolescent Versions:
kill
kill
DESCRIPTION
The kill command sends a signal to each process speci®ed by a pid process identi®er. The default signal is SIGTERM, which normally terminates processes that do not trap or ignore the signal.
pid is a process identi®er, an unsigned or negative integer that can be one of the following:
> 0 The number of a process.
=0 All processes, except special system processes, whose process group ID is equal to the process group ID of the sender.
Process numbers can be found with the ps command (see ps(1)) and with the
Options
kill recognizes the following options:
Send the speci®ed signal name. The default is SIGTERM, number 15. signame | |
| can be speci®ed in upper- and/or lowercase, with or without the SIG pre®x. These |
| values can be obtained by using the |
| represents signal value zero. See "Signal Names and Numbers" below. |
Send the speci®ed decimal signal number. The default is 15, SIGTERM. See "Sig- | |
| nal Names and Numbers" below. |
(Obsolescent.) Equivalent to | |
(Obsolescent.) Equivalent to |
Signal Names and Numbers
The following table describes a few of the more common signals that can be useful from a terminal. For a complete list and a full description, see the header ®le <signal.h> and the manual entry signal(5).
signum | signame | Name | Description | |
0 | SIGNULL | Null | Check access to pid |
|
1 | SIGHUP | Hangup | Terminate; can be trapped | |
2 | SIGINT | Interrupt | Terminate; can be trapped | |
3 | SIGQUIT | Quit | Terminate with core dump; can be trapped | |
9 | SIGKILL | Kill | Forced termination; cannot be trapped | |
15 | SIGTERM | Terminate | Terminate; can be trapped | |
Section 1−390 | − 1 − |