killall
Quick Reference
Command Name:
killall
Category:
process management
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
Process termination
Terminate processes by name
- 2
Resource management
Manage system resources by terminating processes
- 3
Scripting
Use in shell scripts to terminate processes programmatically
- 4
Troubleshooting
Resolve issues with unresponsive or misbehaving processes
Syntax
killall [options] name...
Options
Option | Description |
---|---|
-e, --exact | Require exact match for very long names |
-I, --ignore-case | Case insensitive process name match |
-g, --process-group | Kill the process group to which the process belongs |
-i, --interactive | Ask for confirmation before killing |
-l, --list | List all known signal names |
-o, --older-than TIME | Kill processes older than TIME (time units: s=seconds, m=minutes, h=hours, d=days, w=weeks) |
-y, --younger-than TIME | Kill processes younger than TIME |
-q, --quiet | Do not print complaints when no processes were killed |
-r, --regexp | Interpret process name as an extended regular expression |
-s, --signal SIGNAL | Send this signal instead of SIGTERM |
-u, --user USER | Kill only processes owned by specified user |
-v, --verbose | Report if the signal was successfully sent |
-w, --wait | Wait for all killed processes to die |
-V, --version | Display version information |
Examples
How to Use These Examples
The examples below show common ways to use the killall
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Usage:
killall firefox
Terminate all processes named "firefox" by sending the default TERM signal.
killall -9 chrome
Force kill all processes named "chrome" by sending the KILL signal (9).
killall -SIGTERM nginx
Send the TERM signal to all processes named "nginx" using the signal name instead of number.
Selective Termination:
killall -u username firefox
Kill only the "firefox" processes owned by the specified user.
killall -g httpd
Kill processes in the same process group as "httpd".
killall -v nginx
Verbose mode: report if the signal was successfully sent.