Docs / Server Management / How to Check Disk Usage on Linux

How to Check Disk Usage on Linux

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 86 views · 1 min read

Monitoring disk usage helps prevent your server from running out of space.

Overall Disk Usage

df -h

This 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 -20

Clean Up

  • Clear old logs: journalctl --vacuum-size=100M
  • Remove old packages: apt autoremove -y
  • Clean apt cache: apt clean

Was this article helpful?