Monitoring disk usage helps prevent your server from running out of space.
Overall Disk Usage
df -hThis shows all mounted filesystems with used/available space in human-readable format.
Directory Size
du -sh /var/log
du -sh /home/*Find Large Files
find / -type f -size +100M -exec ls -lh {} \;Find Large Directories
du -h --max-depth=1 / | sort -rh | head -20Clean Up
- Clear old logs:
journalctl --vacuum-size=100M - Remove old packages:
apt autoremove -y - Clean apt cache:
apt clean