Beginner Package: coreutils

df

Report filesystem disk space usage.

Syntax

df [options]

Description

df shows how much space is used and available on each mounted filesystem, and is the fastest way to check whether a disk is close to full.

Examples

df -h
Show disk usage for all mounts, human-readable
df -hT
Also show the filesystem type for each mount
df -h /var
Show usage for the filesystem containing a specific path

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux

Put it into practice

Learn this in context