How to Check Server Resources on Linux (Complete Guide)

Monitoring server resources is critical for maintaining performance, uptime, and stability.
If your server slows down or crashes, the first step is checking CPU, memory, disk, and processes.
In this complete guide, you will learn how to check server resources on Linux using simple commands.
Why Monitoring Server Resources is Important
- Prevent downtime
- Identify bottlenecks
- Improve performance
- Plan upgrades
Check CPU Usage
top
top
Shows real-time CPU usage, processes, and load.
htop (Better Alternative)
htop
User-friendly interface with colors.
Check RAM Usage
free -h
free -h
Shows total, used, and free memory.
Check Disk Usage
df -h
df -h
Shows disk usage of all partitions.
du -sh
du -sh /var/www
Shows folder size.
Check Running Processes
ps aux
ps aux
Lists all processes.
Check Load Average
uptime
uptime
Shows system load.
Check Network Usage
ifconfig / ip
ip a
Shows network interfaces.
Real-World Example
If server is slow:
- Run top
- Check CPU usage
- Identify high process
- Kill or optimize
Pro Tips
- Use htop for better monitoring
- Monitor logs regularly
- Set alerts for high usage
FAQs
What is normal CPU usage?
Depends on workload, but keep below 70%.
How much RAM is enough?
Depends on application.
Conclusion
Monitoring server resources is essential for maintaining a healthy Linux server. With the right commands, you can quickly diagnose and fix issues.
