dua (Disk Usage Analyzer) reports directory space quickly in parallel and offers interactive exploration plus selective deletion.
Overview
dua scans directories to show how disk space is used. It runs work in parallel by default to return aggregate listings quickly from SSDs and spinning disks alike. The aggregate subcommand prints flat totals or an indented tree with a depth limit, and supports gitignore-style exclude files for backup-oriented sizing.
Interactive mode, started with dua i or dua interactive, provides a terminal UI to browse entries, mark items, and delete with a multi-step guard against mistakes. Cleanup mode finds disposable folders such as node_modules, Python caches, Cargo target trees, and similar candidates, grouping them for review without auto-deleting anything.
Additional commands emit folded stack data or SVG flame graphs of usage. Configuration lives in a platform-specific config.toml with customizable keybindings. Pre-built binaries and package-manager installs are documented for macOS, Linux, and Windows, along with cargo installs for Unix and nightly cargo on Windows when a TUI build is needed.
Key features
- Parallel directory aggregation
- Interactive TUI browse and delete
- gitignore-style path exclusions
- Disposable directory cleanup hub
- Folded stacks and flame graphs
- APFS clone deduplication option on macOS
- Localized interactive UI
- Configurable keybindings file
Use cases
- Finding what consumes disk space
- Safely deleting files from terminal UI
- Clearing dev dependency caches
- Sharing tree-style usage reports
Does the same job as
dua-cli doesn't name these products itself, but its own description shows it does the same job.