DF(1) | General Commands Manual | DF(1) |
df
— display
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).
-a
df
deduplicates filesystems and skips ones with a blocksize of zero.-h
-i
-l
-P
-k
-k
is also
passed, disables -h
.-T
-t
mnt_type-x
mnt_typeThe df
utility exits 0 on success,
and >0 if an error occurs.
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 |