Useful Linux Commands Every System Administrator Should Know
Linux system administration becomes much easier when you know the right commands for monitoring, troubleshooting, and managing servers efficiently.
In this article, I’ll share some useful Linux commands that I regularly use while managing production servers and cloud infrastructure environments.
1. Check System Uptime
uptime
Displays:
- server uptime
- current load average
- active users
Useful for quick server health checks.
2. Monitor Running Processes
htop
or
top
Helps identify:
- high CPU usage
- memory consumption
- overloaded processes
3. Check Disk Usage
df -h
Displays disk space usage in human-readable format.
4. Analyze Directory Sizes
du -sh *
Very useful when troubleshooting storage problems.
5. Check Memory Usage
free -m
Shows:
- RAM usage
- swap usage
- available memory
6. View Running Services
systemctl list-units --type=service
Manage services:
sudo systemctl restart nginx
sudo systemctl status mysql
7. Monitor Network Connections
ss -tulpn
Useful for checking:
- open ports
- active services
- listening processes
8. Search Logs Efficiently
tail -f /var/log/syslog
or
journalctl -xe
Essential for troubleshooting server issues.
9. Secure File Permissions
chmod 644 file.txt
chmod 755 script.sh
Understanding Linux permissions is critical for server security.
10. Check Server IP Address
ip a
or
hostname -I
11. Test Server Connectivity
ping google.com
Check routing:
traceroute google.com
12. Monitor Real-Time Resource Usage
vmstat 1
Provides live system performance statistics.
13. Docker Management Commands
List containers:
docker ps
View logs:
docker logs container_name
Restart container:
docker restart container_name
14. Secure SSH Access
Restart SSH:
sudo systemctl restart ssh
Check SSH port:
sudo ss -tulpn | grep ssh
Conclusion
Linux commands are powerful tools for server administration, monitoring, troubleshooting, and infrastructure management.
A strong understanding of Linux fundamentals helps system administrators maintain stable, secure, and high-performance production environments.
I regularly work with Linux servers, Docker, cPanel/WHM, hosting technologies, and cloud infrastructure optimization.
🌐 Portfolio:
https://sovrabroy.online
Top comments (0)