English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux killall Command

Linux Command大全

Linux killall is used to kill a process, which is different from kill in that it will kill all processes with the specified name.

The kill command is used to kill a specified process PID, which needs to be used with ps, while killall directly operates on the process name, which is more convenient.

Syntax

  killall [options] name

Parameter Description:

  • name: Process name

The options include the following parameters:

  • -e | --exact: The process needs to match the name completely
  • -I | --ignore-case: Ignore case
  • -g | --process-group: End the process group
  • -i | --interactive: Ask before ending
  • -l | --list: List all signal names
  • -q | --quite: Do not output any information if the process does not end
  • -r | --regexp: Explain the process name pattern as an extended regular expression.
  • -s | --signal: Send the specified signal
  • -u | --user: End the process 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

Online Examples

# killall -9 php-fpm          //End all php-fpm process

Linux Command大全