1. top — Live Process Monitoring
Loading...Shows:
- CPU usage
- Memory usage
- Running processes
- Load average
- Process IDs (PID)
Useful shortcuts inside
top:Loading...2. htop — Interactive Process Monitor
Loading...- More user-friendly alternative to
top.
- Shows CPU, memory, processes, and system load.
Install if needed:
Loading...3. df — Disk Space
Show filesystem disk usage:
Loading...h→ Human-readable
Check a specific filesystem:
Loading...Show filesystem type:
Loading...4. du — Directory/File Size
Check directory size:
Loading...Example:
Loading...Show sizes of items inside a directory:
Loading...Find largest directories:
Loading...5. free — Memory/RAM Usage
Loading...Shows:
- Total RAM
- Used RAM
- Available RAM
- Swap
6. uptime — System Uptime & Load
Loading...Shows:
- How long system has been running
- Number of users
- Load average
7. vmstat — CPU, Memory & System Statistics
Loading...More useful:
Loading...- Updates every 2 seconds.
8. iostat — CPU & Disk I/O
Loading...Install if needed:
Loading...9. ps — Process Information
Loading...Find a specific process:
Loading...10. watch — Repeatedly Run a Command
Loading...Run every 2 seconds:
Loading...11. lsof — Files/Ports Used by Processes
Loading...Find which process is using a port:
Loading...12. dmesg — Kernel/System Messages
Loading...Useful for troubleshooting hardware/kernel/system issues.
⭐ Important Commands
Command | Purpose |
top | Live process monitoring |
htop | Interactive process monitoring |
ps aux | List processes |
free -h | RAM & swap usage |
df -h | Filesystem disk space |
du -sh | Directory/file size |
uptime | Uptime & load average |
vmstat | CPU/memory/system statistics |
iostat | CPU & disk I/O |
watch | Repeat a command |
lsof | Files/ports used by processes |
dmesg | Kernel/system messages |
Easy Difference
Loading....jpg?table=block&id=29d76b1d-f1a8-8072-a9bf-cc78d1c7d881&cache=v2)