January 2003
Intermediate to advanced
832 pages
32h 40m
English
kill
kill [options] ID
Terminate each specified process ID or job ID. You must own the process or be a privileged user. This built-in is similar to /bin/kill described in Chapter 25 but also allows symbolic job names. Stubborn processes can be killed using signal 9.
-l
List the signal names. (Used by itself.)
The signal number or name, without the SIG prefix (e.g., HUP, not
SIGHUP). The command kill -l prints a list of the
available signal names. The list varies by system architecture; for a
PC-based system, it looks like this:
% kill -l
HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2
PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG
XCPU XFSZ VTALRM PROF WINCH POLL PWR UNUSEDThe signals and their numbers are defined in /usr/include/asm/signal.h; look in that file to find the signals that apply to your system.
If you’ve issued the following command:
44% nroff -ms report &you can terminate it in any of the following ways:
45%kill 19536Process ID 45%kill %Current job 45%kill %1Job number 1 45%kill %nrInitial string 45%kill %?reportMatching string