Server Administration · 8 min read · Beginner
Processes, Ports & Server Health
Monitor CPU, RAM, disk space, open TCP ports, and systemd services on production Linux servers.
What you'll learn
- Check memory (free -h) and disk usage (df -h) in one second
- Inspect running processes with ps aux and listening ports with ss -tulpn
- Manage background daemons cleanly with systemctl status/restart
When a production server slows down or refuses connections, five built-in Linux commands tell you almost everything immediately:
free -h-> RAM and swap usage.df -h-> Disk space per partition.ps aux | grep node-> Running processes and PIDs.ss -tulpn-> Which processes are listening on which TCP/UDP ports.systemctl status nginx/journalctl -u nginx -n 50-> Service status and logs.
Fill-in-the-Blank Exercise
Server Health Commands
Check human-readable disk usage and restart nginx via systemd.
-h
systemctl nginxLive Bash Lab
Bashhealth.sh
Expected OutputClick “Run Live” to compile with GNU Bash
Kernel: Linux CPUs: 4 Root disk used: 32%
Check Your Understanding
Score: 0 / 1
1. Which command shows human-readable free and used disk space on mounted filesystems?
Study Workspace
Finished this lesson?
Your progress is saved locally in your browser, no account needed.