Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

kill

v(uutils coreutils) 0.8.0
kill [OPTIONS]... PID...

Send signal to processes or list information about signals.

Options

--list, -l

Lists signals

--table, -t

Lists table of signals

--signal=<signal>, -s <signal>

Sends given signal instead of SIGTERM

Examples

Terminate a program using the default SIGTERM (terminate) signal:

kill {{process_id}}

List available signal names (to be used without the SIG prefix):

kill -l

Terminate a program using the SIGHUP (hang up) signal. Many daemons will reload instead of terminating:

kill {{[-1|-HUP]}} {{process_id}}

Terminate a program using the SIGINT (interrupt) signal. This is typically initiated by the user pressing <Ctrl c>:

kill {{[-2|-INT]}} {{process_id}}

Signal the operating system to immediately terminate a program (which gets no chance to capture the signal):

kill {{[-9|-KILL]}} {{process_id}}

Signal the operating system to pause a program until a SIGCONT (“continue”) signal is received:

kill {{[-19|-STOP]}} {{process_id}}

Send a SIGUSR1 signal to all processes with the given GID (group id):

kill -SIGUSR1 -{{group_id}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.