Skip to content

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 scripts

Notes

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

AlternativeTypeTrade-off
df -hBuilt inAll you need once you know which lines to ignore
dyskOpen sourceA similar table-based df replacement
Disk UtilityBuilt inThe graphical view of the same APFS container layout

Install

brew install duf

Links

This post is licensed under CC BY 4.0 by the author.
Last updated on