-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux Process Management
Complete beginner-friendly guide to process management on Linux, covering Arch Linux, CachyOS, and other distributions including viewing processes, managing processes, process priorities, and resource monitoring.
List processes:
# All processes
ps aux
# Tree view
ps auxf
# Specific user
ps -u username
# By command
ps aux | grep firefoxSee PS Process Management for detailed guide.
Interactive process viewer:
# Launch top
top
# Sort by CPU: Press P
# Sort by memory: Press M
# Kill process: Press kSee Free & Top Resource Monitoring for detailed guide.
Better top:
# Install htop
sudo pacman -S htop
# Launch
htopKill by PID:
# Kill process
kill PID
# Force kill
kill -9 PID
# Kill by name
pkill process-name
# Force kill by name
killall -9 process-nameManage services:
# Stop service
sudo systemctl stop service-name
# Kill service
sudo systemctl kill service-nameSet priority:
# Run with low priority
nice -n 19 command
# Run with high priority
nice -n -20 commandChange priority:
# Change priority
sudo renice -n 10 -p PID
# Change for user
sudo renice -n 10 -u usernameCheck resources:
# CPU and memory
top
# Memory
free -h
# Disk I/O
iostat
# Network
iftopFind CPU hogs:
# Sort by CPU
top -o %CPU
# Or
ps aux --sort=-%cpu | headFind memory hogs:
# Sort by memory
top -o %MEM
# Or
ps aux --sort=-%mem | headThis guide covered process management for Arch Linux, CachyOS, and other distributions, including viewing, managing, priorities, and monitoring.
- PS Process Management - ps command guide
- Free & Top Resource Monitoring - Resource monitoring
- System Monitoring - System monitoring
- ArchWiki Process Management: https://wiki.archlinux.org/title/Process_management
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.