Check free disk space on each filesystem with df

Show total, used, and available space plus usage percentage for every mounted filesystem in human-readable units.

LinuxFilessystemDiagnosticsLow risk
Run df -h to see used and available space (in G/M units) for every mounted filesystem.

01Command

Command
$ df -h

02What it does

Each row is one mounted filesystem: the device, size, used, avail, Use%, and mount point. Ignore the 'Filesystem' rows for tmpfs, udev, and loop devices — the one whose mount point is / is your root filesystem. Watch the Avail column on the root and /home partitions; when a filesystem hits 100%, services start failing to write. On ext4/btrfs a few percent is reserved for root, so df shows less free than a non-root user can actually use, and for deleted-but-open files use lsof +L1 to find processes holding them.

03Risk

RiskLow risk
!Warning: Note that df reports filesystem-level space; if space seems missing, du per directory can reveal whether large files or deleted-but-open files are responsible.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-17 · Category: Files & Folders

06Related solutions