community man page

df

Display an overview of the filesystem disk space usage.

10 examples·source: tldr · CC-BY·status: verified
Reading is open to everyone. Suggesting a flag, fixing an example or adding a recipe is opening to verified-email accounts soon — every change is moderated before it goes live.
curl https://curlhub.sh/man/df
same page, in your terminal

Examples

Display all filesystems and their disk usage GNU

df

Display all filesystems in human-readable form GNU

df [-h|--human-readable]

Display the filesystem containing the specified file or directory GNU

df path/to/file_or_directory

Include statistics on the number of free inodes GNU

df [-i|--inodes]

Display filesystems but exclude the specified types GNU

df [-x|--exclude-type] squashfs [-x|--exclude-type] tmpfs

Display filesystem types GNU

df [-T|--print-type]

Display all filesystems and their disk usage (using 512-byte units)

df

Display the filesystem containing the specified file or directory

df path/to/file_or_directory

Use kibibyte (1024 byte) units when showing size figures

df -k

Display information in a portable way

df -P