duf reports filesystem usage and free space with readable tables, filtering, and sorting as an alternative to traditional df output.
Overview
duf is a command-line Disk Usage/Free utility for Linux, BSD, macOS, and Windows. It presents mount points and devices in a colorful, terminal-width-aware table that users can sort, filter, and narrow to specific paths or filesystem types.
Output can highlight availability and usage with configurable color thresholds, omit pseudo or duplicate mounts, or list everything with an all flag. Columns and sort keys cover size, usage percentages, inodes, mount points, and filesystem types. JSON export is available for scripting.
Packages exist for many Linux distributions, BSD systems, macOS, Windows, and Android via Termux, with binaries offered as another install path. Users run the tool without arguments for a default summary or pass paths and flags to focus results.
The project describes itself as a user-friendly alternative to df for inspecting disk space from the terminal.
Key features
- Color-coded terminal output
- Sortable disk usage table
- Mount and filesystem filters
- JSON output mode
- Inode usage reporting
- Configurable color thresholds
- Terminal width adaptation
- Hide or show device groups
Use cases
- Checking disk space quickly
- Scripting storage reports as JSON
- Filtering noisy mount tables
- Monitoring inode exhaustion
- Comparing network versus local disks