Cancels all processes except the calling process.
The killall command cancels all processes that you started, except those producing the killall process. This command provides a convenient means of canceling all processes created by the shell that you control. When started by a root user, the killall command cancels all cancellable processes except those processes that started it. If several Signals are specified, only the last one is effective.
If no signal is specified, the killall command sends a SIGKILL signal.
Item | Description |
---|---|
- | Sends a SIGTERM signal initially and then sends a SIGKILL signal to all processes that survive for 30 seconds after receipt of the signal first sent. This gives processes that catch the SIGTERM signal an opportunity to clean up. If both - and -Signal are set, the killall command sends the specified signal initially and then sends a SIGKILL signal to all processes that survive for 30 seconds after receipt of the signal first sent. |
-Signal | Sends the specified Signal number or SignalName. |
killall
This
sends all background processes the kill signal
9 (also called the SIGKILL signal).killall -
This sends signal 15, the SIGTERM signal;
waits 30 seconds, and then sends signal 9, the SIGKILL signal.killall -2
This
sends signal 2, the SIGINT signal, to the background processes.