Linux System Monitoring - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Linux System Monitoring Guide
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.
Table of Contents
Resource Monitoring
CPU Monitoring
Monitor CPU:
# top
top
# htop
htop
# CPU usage
mpstat 1
See Free & Top Resource Monitoring for detailed guide.
Memory Monitoring
Monitor memory:
# free
free -h
# Memory usage
vmstat 1
# Detailed
cat /proc/meminfo
See Free & Top Resource Monitoring for detailed guide.
Disk Monitoring
Monitor disk:
# iostat
sudo pacman -S sysstat
iostat -x 1
# Disk usage
df -h
du -sh /path
See DF & DU Disk Space for detailed guide.
System Health
System Information
Check system:
# System info
uname -a
hostnamectl
uptime
# Hardware info
lscpu
free -h
lsblk
System Logs
Check logs:
# System logs
journalctl -b
# Service logs
journalctl -u service-name
See Journalctl Troubleshooting for detailed guide.
Monitoring Tools
htop
Install htop:
# Install htop
sudo pacman -S htop
# Launch
htop
btop
Install btop:
# Install btop
sudo pacman -S btop
# Launch
btop
Glances
Install Glances:
# Install Glances
sudo pacman -S glances
# Launch
glances
Performance Monitoring
Monitor Performance
Check performance:
# CPU
top
# Memory
free -h
# Disk I/O
iostat
# Network
iftop
Troubleshooting
High Resource Usage
Find resource hogs:
# CPU
top -o %CPU
# Memory
top -o %MEM
# Disk
iostat -x 1
Summary
This guide covered system monitoring for Arch Linux, CachyOS, and other distributions, including resource monitoring, system health, and monitoring tools.
Next Steps
- 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.