-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux kill Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to kill on Linux, covering Arch Linux, CachyOS, and other distributions including terminating processes, sending signals, and process management.
kill sends signals to processes.
Uses:
- Terminate processes: Stop processes
- Send signals: Send various signals
- Process control: Control processes
- Force kill: Force process termination
Why it matters:
- Process control: Control running processes
- Troubleshooting: Stop stuck processes
- System management: Manage system processes
Basic usage:
# Kill process by PID
kill 1234
# Sends TERM signal (default)Kill by name:
# Kill by name (use pkill)
pkill process-name
# Or killall
killall process-nameSignal types:
# TERM (terminate, default)
kill 1234
# KILL (force kill)
kill -9 1234
kill -KILL 1234
# HUP (hangup)
kill -1 1234
kill -HUP 1234
# INT (interrupt)
kill -2 1234
kill -INT 1234List signals:
# List all signals
kill -l
# Shows signal numbers and namesKill forcefully:
# Force kill
kill -9 1234
# -9 = KILL signal (cannot be ignored)Terminate gracefully:
# Try TERM first
kill 1234
# Wait, then force if needed
sleep 2
kill -9 1234Use sudo:
# Kill other user's process
sudo kill 1234
# Or
sudo kill -9 1234This guide covered kill usage, signal sending, and process termination for Arch Linux, CachyOS, and other distributions.
- pkill Guide - Kill by name
- killall Guide - Kill all processes
- Process Management - Process management
-
kill Documentation:
man kill
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.