DF(1) General Commands Manual DF(1)

dfdisplay mounted filesystems usage

df [-ahilPkT] [-t mnt_type] [-x mnt_type] [file...]

df displays the current usage and mountpoints of mounted filesystems in a space-separated list containing: Filesystem, Total, Used, Available, Use percentage, Mountpoint. If file is given df filters to the first filesystem containing each file.

Unlike some implementations the table formatting isn't perfect, you might want to use column(1) to get more readable output. Also padding is disabled when output isn't a TTY so you can more easily use tools like cut(1).

Display all mounted filesystems, otherwise df deduplicates filesystems and skips ones with a blocksize of zero.
Print human readable sizes.
Print inode usage statistics.
Exclude known remote filesystems.
POSIX Formatting, prints in blocks of 512 when
Forces printing in blocks of 1024. -k is also passed, disables -h.
Print filesystem type right after the Filesystem column.
mnt_type
Include only selected filesystems matching mnt_type. For example "nfs4". Option can be passed multiple times to include multiple types.
mnt_type
Exclude filesystems types matching mnt_type. For example "nfs4". Option can be passed multiple times to exclude multiple types.

The df utility exits 0 on success, and >0 if an error occurs.

statvfs(3)

df should be compliant with the IEEE Std 1003.1-2024 (“POSIX.1”) specification.

-i, -l, -t and -x are extensions inspired by other implementations such as FreeBSD and GNU.

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

2024-03-31 Linux 6.6.67-gentoo-x86_64