HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

killall — Send kill signal to all instances of a process by name (must be exact name). All signals except SIGK

Submitted by: @import:tldr-pages··
0
Viewed 0 times
killallcommandsendinstancesallclisignalkill

Problem

How to use the killall command: Send kill signal to all instances of a process by name (must be exact name). All signals except SIGKILL and SIGSTOP can be intercepted by the process, allowing a clean exit. More information: <https://manned.org/killall>.

Solution

killall — Send kill signal to all instances of a process by name (must be exact name). All signals except SIGKILL and SIGSTOP can be intercepted by the process, allowing a clean exit. More information: <https://manned.org/killall>.

Terminate a process using the default SIGTERM (terminate) signal:
killall {{process_name}}


List available signal names (to be used without the SIG prefix):
killall {{[-l|--list]}}


Interactively ask for confirmation before termination:
killall {{[-i|--interactive]}} {{process_name}}


Terminate a process using the SIGINT (interrupt) signal, which is the same signal sent by pressing <Ctrl c>:
killall -INT {{process_name}}


Force kill a process:
killall -KILL {{process_name}}

Code Snippets

Terminate a process using the default SIGTERM (terminate) signal

killall {{process_name}}

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

killall {{[-l|--list]}}

Interactively ask for confirmation before termination

killall {{[-i|--interactive]}} {{process_name}}

Terminate a process using the SIGINT (interrupt) signal, which is the same signal sent by pressing `<Ctrl c>`

killall -INT {{process_name}}

Force kill a process

killall -KILL {{process_name}}

Context

tldr-pages: common/killall

Revisions (0)

No revisions yet.