df Show free and used space on disks

Reports how much space is used and how much is free on each mounted filesystem. Reach for it when a disk is filling up and you need to know which one. Unlike du, which measures folders, df looks at whole disks.

Synopsis

df [OPTION]... [FILE]...

Common options

Option or formWhat it does
-hHuman-readable sizes in powers of 1024, such as 466Gi on macOS or 466G on Linux
-HHuman-readable sizes in powers of 1000, so they match what disk makers print on the box. GNU/Linux spells it --si
-kReport sizes in 1024-byte blocks
-iShow inode counts, the number of files a filesystem can hold. This is the default on macOS
-lShow only local disks, hiding network mounts
-PPortable output format: one line per filesystem, with fixed columns. Safe for scripts
-T typemacOS: show only filesystems of the given type. On GNU/Linux -T instead prints a type column, and -t type filters
-YmacOS: add a column with the filesystem type, such as apfs. GNU/Linux has no -Y and uses -T for this

Examples

Free space on every mounted disk
df -h
Which disk is this folder on, and how full is it
df -h .
Sizes in kilobytes for a script
df -k .
Portable format with one line per disk
df -P .
Only local disks, hiding network shares
df -hl
Show the filesystem type on macOS
df -hY /

Notes

See also

Last reviewed 2026-10-07.