A better df alternative. Disk Usage/Free utility with colorful output.
duf (Disk Usage/Free Utility) is a modern, cross-platform replacement for the traditional df command that displays disk usage and free space information. Unlike the standard df tool, duf provides a colorful, user-friendly output that automatically adjusts to your terminal's theme and width, making it much easier to read and understand at a glance.
The tool offers powerful filtering and sorting capabilities, allowing users to group devices, hide or show specific filesystem types, and sort results by various criteria like size, usage, or mount point. It can display both block usage and inode information, and includes customizable color-coding with configurable thresholds to highlight available space and usage levels in red, green, or yellow.
duf is designed for system administrators, developers, and anyone who regularly monitors disk usage across Linux, BSD, macOS, and Windows systems. Its clean interface and rich feature set make it particularly valuable for users who want more informative and visually appealing disk usage reports than what traditional command-line tools provide. The tool also supports JSON output for integration with scripts and automation workflows.
# via Homebrew
brew install duf
# via APT
apt install duf
# via Go build
git clone https://github.com/muesli/duf.git && cd duf && go build
