-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux System Monitoring
Complete beginner-friendly guide to system monitoring on Linux, covering Arch Linux, CachyOS, and other distributions including resource monitoring, system health checks, and monitoring tools.
Monitor CPU:
# top
top
# htop
htop
# CPU usage
mpstat 1See Free & Top Resource Monitoring for detailed guide.
Monitor memory:
# free
free -h
# Memory usage
vmstat 1
# Detailed
cat /proc/meminfoSee Free & Top Resource Monitoring for detailed guide.
Monitor disk:
# iostat
sudo pacman -S sysstat
iostat -x 1
# Disk usage
df -h
du -sh /pathSee DF & DU Disk Space for detailed guide.
Check system:
# System info
uname -a
hostnamectl
uptime
# Hardware info
lscpu
free -h
lsblkCheck logs:
# System logs
journalctl -b
# Service logs
journalctl -u service-nameSee Journalctl Troubleshooting for detailed guide.
Install htop:
# Install htop
sudo pacman -S htop
# Launch
htopInstall btop:
# Install btop
sudo pacman -S btop
# Launch
btopInstall Glances:
# Install Glances
sudo pacman -S glances
# Launch
glancesCheck performance:
# CPU
top
# Memory
free -h
# Disk I/O
iostat
# Network
iftopFind resource hogs:
# CPU
top -o %CPU
# Memory
top -o %MEM
# Disk
iostat -x 1This guide covered system monitoring for Arch Linux, CachyOS, and other distributions, including resource monitoring, system health, and monitoring tools.
- Free & Top Resource Monitoring - Resource monitoring
- Process Management - Process management
- Performance Tuning - Performance
- ArchWiki System Monitoring: https://wiki.archlinux.org/title/System_monitoring
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.