df
The "disk free" command shows total/used/available disk space for each filesystem listed on the command line, or all currently mounted filesystems. toybox
On Linux, macOS, FreeBSD, NetBSD, OpenBSD
Linux
The "disk free" command shows total/used/available disk space for each filesystem listed on the command line, or all currently mounted filesystems. Pedantic provides a slightly less useful output format dictated by POSIX, and sets the units to 512 bytes instead of the default 1024 bytes.
df [-aHhikP] [-t TYPE] [FILE...]
-aShow all (including /proc and friends)-HHuman readable (k=1000)-hHuman readable (K=1024)-iShow inodes instead of blocks-kSets units back to 1024 bytes (the default without -P)-PThe SUSv3 "Pedantic" option (512 byte blocks)-t TYPEDisplay only filesystems of this typeSeveral platforms
Display an overview of the filesystem disk space usage.
Display all filesystems and their disk usage (using 512-byte units)
dfIdentifyDisplay the filesystem containing the specified file or directory
df path/to/file_or_directoryIdentifyUse kibibyte (1024 byte) units when showing size figures
df -kIdentify-kSets units back to 1024 bytes (the default without -P) toyboxDisplay information in a portable way
df -PIdentify-PThe SUSv3 "Pedantic" option (512 byte blocks) toyboxLinux
Display an overview of the filesystem disk space usage.
Display all filesystems and their disk usage
dfIdentifyDisplay all filesystems in human-readable form
df --human-readableIdentifyDisplay the filesystem containing the specified file or directory
df path/to/file_or_directoryIdentifyInclude statistics on the number of free inodes
df --inodesIdentifyDisplay filesystems but exclude the specified types
df --exclude-type squashfs --exclude-type tmpfsIdentifyDisplay filesystem types
df --print-typeIdentifymacOS
Display an overview of the filesystem disk space usage.
Display all filesystems and their disk usage (using 512-byte units)
dfIdentifyUse human-readable units (based on powers of 1024) and display a grand total
df -h -cIdentify-hHuman readable (K=1024) toyboxUse Human-readable units (based on powers of 1000)
df --siIdentifyDisplay the filesystem containing the specified file or directory
df path/to/file_or_directoryIdentifyInclude statistics on the number of free and used inodes, including the filesystem tYpes
df -iYIdentify-iShow inodes instead of blocks toyboxUse kibibyte (1024 byte) units when showing size figures
df -kIdentify-kSets units back to 1024 bytes (the default without -P) toyboxDisplay information in a Portable way
df -PIdentify-PThe SUSv3 "Pedantic" option (512 byte blocks) toyboxFreeBSD
Display an overview of the filesystem disk space usage.
Display all filesystems and their disk usage (using 512-byte units)
dfIdentifyUse human-readable units (based on powers of 1024) and display a grand total
df -h -cIdentify-hHuman readable (K=1024) toyboxDisplay the filesystem containing the specified file or directory
df path/to/file_or_directoryIdentifyInclude statistics on the number of free and used inodes, including the filesystem Types
df -iTIdentify-iShow inodes instead of blocks toyboxUse kibibyte (1024 byte) units when showing size figures
df -kIdentify-kSets units back to 1024 bytes (the default without -P) toyboxDisplay information in a Portable way
df -PIdentify-PThe SUSv3 "Pedantic" option (512 byte blocks) toyboxNetBSD
Display an overview of the filesystem disk space usage.
Display all filesystems and their disk usage (using 512-byte units)
dfIdentifyDisplay all the fields of the structure(s) returned by statvfs
df -GIdentifyDisplay the filesystem containing the specified file or directory
df path/to/file_or_directoryIdentifyInclude statistics on the number of free and used inodes
df -iIdentify-iShow inodes instead of blocks toyboxUse kibibyte (1024 byte) units when showing size figures
df -kIdentify-kSets units back to 1024 bytes (the default without -P) toyboxDisplay information in a Portable way
df -PIdentify-PThe SUSv3 "Pedantic" option (512 byte blocks) toyboxOpenBSD
Display an overview of the filesystem disk space usage.
Display all filesystems and their disk usage (using 512-byte units)
dfIdentifyDisplay all filesystems in human-readable form (based on powers of 1024)
df -hIdentify-hHuman readable (K=1024) toyboxDisplay the filesystem containing the specified file or directory
df path/to/file_or_directoryIdentifyInclude statistics on the number of free and used inodes
df -iIdentify-iShow inodes instead of blocks toyboxUse kibibyte (1024 byte) units when showing size figures
df -kIdentify-kSets units back to 1024 bytes (the default without -P) toyboxDisplay information in a Portable way
df -PIdentify-PThe SUSv3 "Pedantic" option (512 byte blocks) toybox