Commands · Command
CommandLinuxmacOS
df
df [options] [path]Reports how much disk space is used and available on mounted filesystems.
// FLAGS
-hhuman-readable sizes (e.g. GB instead of raw blocks)-Tshow filesystem type-ishow inode usage instead of space// EXAMPLE
df -h — prints a table of every mounted filesystem with its size, used, available, and mount point.
// GOTCHA
df reports space at the filesystem level, not per-directory — "why is my drive full" almost always needs du instead to actually find what's consuming space.
// RELATED COMMANDS