Linux killall command
Linux killall is used to kill a process. Unlike kill, it kills all processes with the specified name.
The kill command kills a process with a specified PID and needs to be used together with ps, while killall directly operates on the process name, which is more convenient.
Syntax
killall [选项] name
Parameter description:
- name: process name
- -e | --exact: the process must match the name exactly
- -I | --ignore-case: ignore case
- -g | --process-group: terminate the process group
- -i | --interactive: ask before terminating
- -l | --list: list all signal names
- -q | --quite: when the process does not end, no information is output
- -r | --regexp: interpret the process name pattern as an extended regular expression
- -s | --signal: send the specified signal
- -u | --user: terminate processes of the specified user
- -v | --verbose: display detailed execution process
- -w | --wait: wait for all processes to end
- -V | --version: display version information
- --help: display help information
Examples
# killall -9 php-fpm //结束所有的 php-fpm 进程Other extensions
Linux Command Encyclopedia