Gdu scans directories and shows disk usage in an interactive TUI, plain stats, JSON export, or a browser UI. It parallelizes well on SSDs and supports advanced filesystem edge cases.
Overview
Gdu (go DiskUsage) reports where space is consumed on local or mounted paths. Interactive mode navigates a tree with keyboard shortcuts; non-interactive and export modes suit scripting, piping, and later re-analysis from JSON compatible with ncdu.
Flags cover apparent versus disk usage, reflink-aware counting on XFS, btrfs, or APFS, ignoring paths via patterns or gitignore-style files, logging unreadable directories, top-N listings, persistent Badger or SQLite scans, and self-update for release binaries.
A built-in web mode serves an embedded UI with treemap and donut views, live scan progress, optional deletion with confirmations, and cleanup highlighting for caches and build artifacts. Docker run examples scan host filesystems from a container.
Operators on Linux servers and desktops use Gdu when du or graphical tools are too slow or when they want repeatable JSON snapshots of storage layout.
Key features
- Interactive TUI browser
- JSON export and re-open
- Parallel SSD-oriented scans
- Embedded web interface
- Treemap cleanup hints
- Multiple directory scan
- Ignore and filter patterns
- Docker and self-update
Use cases
- Finding large directories
- Server disk cleanup planning
- Saving usage snapshots to JSON
- Browsing usage in a web UI
Does the same job as
Gdu doesn't name these products itself, but its own description shows it does the same job.