Process Management

pkill

Send signals to processes based on name pattern and other attributes.

Synopsis

syntax
pkill [OPTION]... PATTERN

Examples

Kill process matching full command
pkill -f 'node server.js'
Force kill all processes owned by nobody
pkill -9 -u nobody
Kill only processes named exactly sshd
pkill -x sshd
Kill all processes on terminal pts/2
pkill -t pts/2

Common options

FlagDescription
-9Send SIGKILL
-fMatch against full command line
-uMatch by effective user
-xExact match only
-tMatch by terminal

About pkill

The `pkill` command send signals to processes based on name pattern and other attributes. Process management commands let you monitor, control, and schedule running processes.

Linux is a multitasking operating system, and understanding how to list processes, send signals, adjust priorities, and manage background jobs is vital for system administration and debugging performance issues. The command accepts 5 commonly used flags shown above, though the full set of options is available in the man page (`man pkill`).

The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More Process Management Commands

Other commands in the Process Management category

Related tools