
klogd | 229
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-p Print the process ID of the named process, but don’t send it a
signal. To use this option, specify the full path (e.g., /bin/kill -p).
-s SIGNAL, -SIGNAL
The signal number (from /usr/include/sys/signal.h) or name
(from kill -l). With a signal number of 9 (KILL), the kill
cannot be caught by the process; use this to kill a process that
a plain kill doesn’t terminate. The default is TERM. The letter
flag itself is optional: both kill -9 1024 and kill -s 9 1024
terminate process 1024.
killall
killall [options] names
Kill processes by command name. If more than one process is
running the specified command, kill all of them. Treats command
names that contain a / as files; kill all processes that are executing
that file.
Options
-signal
Send signal to process (default is TERM). signal may be a
name or a number. The most commonly used signal is 9,
which terminates processes no matter what.
-e Require an exact match to kill very long names (i.e., longer
than 15 characters). Normally, killall kills everything that
matches within the first 15 characters. With -e, such entries
are skipped. (Use -v to print a message for each skipped entry.)
-g Kill the process group to which the process belongs.
-i Prompt for confirmation before killing processes.
-l List known signal names.
-q ...