Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

pkill

Kill processes by pattern

Syntax

pkill [OPTION]... PATTERN

Common Options

-fMatch full command line
-uFilter by user
-PFilter by parent PID
-tFilter by terminal
-nKill newest only
-oKill oldest only
-iCase insensitive
-lList name and PID

Common Examples

pkill nginx

Kill processes matching nginx

pkill -f "python app.py"

Match full command line

pkill -u root nginx

Kill root's nginx

pkill -9 -f "node server"

Force kill node server

pkill -l ssh

List matching processes

pkill -t pts/0

Kill processes on terminal

Related Commands

Related Tools

More Code & Dev Tools