-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux pkill Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to pkill on Linux, covering Arch Linux, CachyOS, and other distributions including killing processes by name, pattern matching, and process management.
pkill kills processes by name.
Uses:
- Kill by name: Kill processes by name
- Pattern matching: Match process names
- Process management: Manage processes
- Batch killing: Kill multiple processes
Why it matters:
- Convenience: Easier than finding PID
- Pattern matching: Match multiple processes
- Process management: Manage processes easily
Basic usage:
# Kill process by name
pkill process-name
# Sends TERM signal (default)Match pattern:
# Match pattern
pkill -f "pattern"
# -f = full command lineExact name:
# Exact match
pkill -x process-name
# -x = exact matchIgnore case:
# Case insensitive
pkill -i process-name
# -i = ignore caseSpecify signal:
# Send specific signal
pkill -9 process-name
# -9 = KILL signal
pkill -TERM process-name
# -TERM = terminate signalShow matches:
# List matching processes
pkill -l process-name
# -l = list (doesn't kill)Check processes:
# Check if process exists
pgrep process-name
# Or
ps aux | grep process-nameThis guide covered pkill usage, pattern matching, and process management for Arch Linux, CachyOS, and other distributions.
- kill Guide - Kill by PID
- killall Guide - Kill all processes
- pgrep Guide - Find processes
-
pkill Documentation:
man pkill
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.