Updated: 18 November 2026 · Applies to: AlmaLinux 9, Rocky Linux 9, Ubuntu 24.04 and Debian 12

Two commands show disk space on Linux: df for whole file systems and du for folders.

Free space on each file system

df -h

Look at the Size, Used, Avail and Use% columns for the mount point, for example / or /home. df -i shows inodes (number of files) instead.

Size of a folder

du -sh /home

Find what uses the space

du -h --max-depth=1 /home | sort -rh | head -n 15

Run it again on the largest folder to go deeper. Old backups, logs in /var/log and cache folders are common culprits.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket