Skip to content

Arch Linux Process Management

Mattscreative edited this page Dec 5, 2025 · 2 revisions

Arch Linux Process Management Guide

Complete beginner-friendly guide to process management on Arch Linux, including viewing processes, managing processes, process priorities, and resource monitoring.


Table of Contents

  1. Viewing Processes
  2. Managing Processes
  3. Process Priorities
  4. Resource Monitoring
  5. Troubleshooting

Viewing Processes

ps Command

List processes:

# All processes
ps aux

# Tree view
ps auxf

# Specific user
ps -u username

# By command
ps aux | grep firefox

top Command

Interactive process viewer:

# Launch top
top

# Sort by CPU: Press P
# Sort by memory: Press M
# Kill process: Press k

htop

Better top:

# Install htop
sudo pacman -S htop

# Launch
htop

Managing Processes

Kill Process

Kill by PID:

# Kill process
kill PID

# Force kill
kill -9 PID

# Kill by name
pkill process-name

# Force kill by name
pkill -9 process-name

Killall

Kill all instances:

# Kill all instances
killall process-name

# Force kill
killall -9 process-name

Process Priorities

nice

Set priority:

# Lower priority (higher nice value)
nice -n 10 command

# Higher priority (lower nice value)
sudo nice -n -10 command

renice

Change priority:

# Change priority
renice -n 10 PID

# For user
sudo renice -n 10 -u username

Resource Monitoring

Monitor Resources

Check usage:

# CPU and memory
top

# Detailed
htop

# System resources
free -h
df -h

iotop

I/O monitoring:

# Install iotop
sudo pacman -S iotop

# Monitor I/O
sudo iotop

Troubleshooting

High CPU Usage

Find process:

# Sort by CPU
top
# Press P

# Or
ps aux --sort=-%cpu | head

High Memory Usage

Find process:

# Sort by memory
top
# Press M

# Or
ps aux --sort=-%mem | head

Zombie Processes

Find zombies:

# List zombies
ps aux | grep defunct

# Usually safe to ignore
# Parent process will clean up

Summary

This guide covered viewing processes, managing processes, priorities, resource monitoring, and troubleshooting.


Next Steps


This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.

Clone this wiki locally