2017-04-09 11:41:36 -05:00
|
|
|
# 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.
|
2021-09-19 07:10:50 +08:00
|
|
|
> More information: <https://manned.org/killall>.
|
2017-04-09 11:41:36 -05:00
|
|
|
|
|
|
|
- Terminate a process using the default SIGTERM (terminate) signal:
|
|
|
|
|
|
|
|
`killall {{process_name}}`
|
|
|
|
|
2025-03-17 23:17:57 +02:00
|
|
|
- List available signal names (to be used without the 'SIG' prefix):
|
2017-04-09 11:41:36 -05:00
|
|
|
|
2025-03-17 23:17:57 +02:00
|
|
|
`killall {{[-l|--list]}}`
|
2017-04-09 11:41:36 -05:00
|
|
|
|
|
|
|
- Interactively ask for confirmation before termination:
|
|
|
|
|
2025-03-17 23:17:57 +02:00
|
|
|
`killall {{[-i|--interactive]}} {{process_name}}`
|
2017-04-09 11:41:36 -05:00
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
- Terminate a process using the SIGINT (interrupt) signal, which is the same signal sent by pressing `<Ctrl c>`:
|
2017-04-09 11:41:36 -05:00
|
|
|
|
|
|
|
`killall -INT {{process_name}}`
|
|
|
|
|
|
|
|
- Force kill a process:
|
|
|
|
|
|
|
|
`killall -KILL {{process_name}}`
|