← Back to tools
View AGENTS.md for duf
duf
A better df alternative with a colorful and user-friendly output
Description
duf is a modern replacement for the df command. It shows disk usage and free space in a colorful, well-organized table format. It groups filesystems by type and supports JSON output.
Install
homebrew
brew install dufapt
sudo apt install dufpacman
sudo pacman -S dufAI Summary
A modern df replacement with colorful, organized output. Groups filesystems by type and shows usage, free space, and mount points in a readable table.
Capabilities
- + Colorful table output grouped by filesystem type
- + Shows usage bars and percentages
- + JSON output for scripting
- + Filter by filesystem type or mount point
Use When
- → Checking disk space across mounted filesystems
- → Want a more readable overview than df
Avoid When
- x Scripts that parse df output (use df or duf --json)
Usage Patterns
Show all disk usage
duf Displays colorful table of all mounted filesystems
JSON output for scripting
duf --json Machine-readable JSON output of filesystem information