Quickly find which folders are consuming the most disk space on a server or laptop.
Interactively browse directory sizes in the terminal and delete large unnecessary files with confirmation prompts.
Scan a large project directory in parallel for fast results on an SSD-based system.
dua, short for Disk Usage Analyzer, is a command-line tool that shows how much space files and directories are taking up on your computer. It is written in Rust and designed to be fast: it scans directories in parallel, which means it reads multiple folders at the same time rather than one by one, making better use of a solid-state drive. Running dua with no arguments reports the disk usage of the current folder. There is also an interactive mode, launched with dua i, that opens a visual interface in the terminal. In interactive mode you can browse through directories, see sizes at a glance, and select files or folders to delete. The README notes that the deletion flow has multiple confirmation steps to reduce the chance of accidental data loss. The tool is available on macOS via Homebrew and MacPorts, on Windows via Scoop and WinGet, and on several Linux distributions including Fedora, Arch Linux, Void Linux, and NixOS through their respective package managers. It can also be installed with Cargo, which is Rust's package manager, on any platform where Rust is set up. The README mentions a few known limitations: symbolic links are not shown when running dua without a path argument, the interactive interface looks best on dark-background terminals, and file names that are too long get cut off rather than wrapped. The project lists several similar tools in the README for comparison, including ncdu and dust.
← byron on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.