duf is a command-line disk usage viewer.
It provides a clearer and more readable alternative to the standard df command for inspecting mounted filesystems and available storage space.
The tool is installed through Homebrew and declared in the project Brewfile.
It is part of the curated Homebrew environment; see Homebrew setup to install everything at once.
Install duf directly:
brew install dufVerify the installation:
duf --version
brew list --formula | grep -x dufDisplay mounted filesystems:
dufDisplay only local filesystems:
duf --only localDisplay information for a specific path:
duf .Display all filesystems, including pseudo and special filesystems:
duf --allduf and dust solve different problems:
dufshows available and used space for mounted filesystems;dustshows which directories and files consume space.
A useful diagnostic workflow is:
duf
dust -d 2 .Use duf first to identify a nearly full volume, then use dust to locate the largest directories.
duf is useful for checking:
- the main macOS filesystem;
- external drives;
- mounted disk images;
- network volumes;
- removable storage;
- available space before large Docker image pulls or builds.
duf is read-only.
It displays filesystem information and does not delete or modify files.
Display the available options:
duf --helpConfirm the executable path:
command -v dufIf a volume is missing, verify that it is currently mounted in Finder or with:
mountRemove duf with Homebrew:
brew uninstall dufThen remove its entry from profiles/full/Brewfile.
