Easy Tutorial
❮ Linux Comm Netconfig Linux Comm Let ❯

Linux pkill Command

Linux Command Manual

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

The kill command terminates a process by its PID and requires the use of ps, whereas pkill operates directly on the process name, making it more convenient.

Syntax

pkill [options] name

Parameter Description:

Example

# pkill -9 php-fpm // Terminate all php-fpm processes

Linux Command Manual

❮ Linux Comm Netconfig Linux Comm Let ❯