Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux killall command

Linux killall command

Linux Command Reference Linux Command Reference

Linux killall is used to kill a process; unlike kill, it kills all processes with a specified name.

The kill command kills a process by its PID and needs to be used together with ps, whereas killall operates directly on the process name, which is more convenient.

Syntax

  killall [选项]  name

Parameter Description:

The options include the following parameters:

Example

# killall -9 php-fpm          //结束所有的 php-fpm 进程

Linux Command Reference Linux Command Reference