community man page

kill

Send a signal to a process, usually related to stopping the process. All signals except for SIGKILL and SIGSTOP can be intercepted by the process to perform a clean exit.

15 examples·source: tldr · CC-BY·status: verified
Reading is open to everyone. Suggesting a flag, fixing an example or adding a recipe is opening to verified-email accounts soon — every change is moderated before it goes live.
curl https://curlhub.sh/man/kill
same page, in your terminal

Examples

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

kill process_id

List signal values and their corresponding names (to be used without the `SIG` prefix). The available options may depend on the `kill` implementation GNU

kill -l|-L|--table

Terminate a background job GNU

kill %job_id

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

kill [-1|-HUP] process_id

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

kill [-2|-INT] process_id

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

kill [-9|-KILL] process_id

Signal the operating system to pause a program until a SIGCONT ("continue") signal is received GNU

kill [-19|-STOP] process_id

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

kill -SIGUSR1 -group_id

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