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

Linux pkill command

Linux pkill command

Linux Command Reference Linux Command Reference

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

the kill command, which kills a specified process PID and needs to be used together with ps, pkill operates directly on process names, making it more convenient.

Syntax

  pkill [选项]  name

Parameter Description:

The options include the following parameters:

Example

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

Linux Command Reference Linux Command Reference