duf
Disk usage utility with colorful output, filtering, and JSON export - replacement for df command
duf is a disk usage utility that serves as a modern replacement for the traditional df command. It displays filesystem usage information with colorful, user-friendly output that automatically adjusts to your terminal's theme and width. The tool works across Linux, BSD, macOS, and Windows systems.
duf provides extensive filtering capabilities to show or hide specific device types (local, network, fuse, special, loops, binds), filesystem types (tmpfs, vfat, etc.), or mount points. It supports wildcard matching for mount point filtering and can sort results by various criteria including size, usage, available space, or filesystem type. Users can customize the display by showing or hiding specific columns like mountpoint, size, used space, available space, and inode information.
The tool includes configurable color-coding thresholds to highlight disk usage levels in red, green, or yellow based on available space or usage percentages. For automation and scripting purposes, duf can export its output in JSON format. It supports both block usage display (default) and inode information display, making it suitable for system administrators and developers who need detailed filesystem monitoring capabilities.
Installation
# via Homebrew
brew install duf
# via APT
apt install duf
# via Pacman
pacman -S duf

Alternatives & related tools
Kopia
Cross-platform backup tool that creates encrypted, compressed, deduplicated snapshots and stores them on cloud, network, or local storage. Includes CLI and GUI.
ctop
Top-like interface for monitoring Docker and runC container metrics in real-time
chezmoi
Dotfile manager that keeps a source state, previews changes with diff, and applies configuration across machines using templates.
witr
Traces a process, port, container, or file back to the chain of supervisors, services, and shells that started it. Offers CLI, JSON output, and a TUI.
age
File encryption tool with small explicit keys, post-quantum support, and UNIX-style composability.
add a badge to your README
Maintain duf? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/duf?utm_source=badge)<a href="https://www.trmn.sh/tools/duf?utm_source=badge"><img src="https://www.trmn.sh/badge/duf.svg" alt="Featured on trmn" height="20"></a>