duf
Mounted filesystems and free space, in a readable table instead of a column of numbers.
Homebrew formula Direct download
What it does
duf lists mounted devices grouped by type — local, network, special — with used and free space, percentages, bars and the filesystem type, colour-coded. It hides the dozens of synthetic macOS mounts that make plain df output unreadable.
duf
duf --only local
duf --sort size
duf --json # for scriptsNotes
On macOS the APFS container layout means several volumes share the same physical free space, and duf shows that honestly — the same figure repeated across volumes is correct, not a bug.
Alternative to
| Alternative | Type | Trade-off |
|---|---|---|
df -h | Built in | All you need once you know which lines to ignore |
| dysk | Open source | A similar table-based df replacement |
| Disk Utility | Built in | The graphical view of the same APFS container layout |
Install
brew install duf