Quickly find which folders or files are consuming the most disk space on a Linux or macOS machine
Browse disk usage interactively in the terminal and delete large files or empty directories without leaving the tool
Export a disk usage scan to JSON and compare it against a previous snapshot to track what grew over time
Gdu is a command-line tool for finding out what is taking up space on your computer's hard drive or SSD. You run it in a terminal, and it scans a directory and shows you the sizes of everything inside, so you can quickly see which folders or files are the biggest culprits. The tool was built with speed in mind. Because it is written in Go, it can scan multiple parts of the filesystem at the same time, which is especially noticeable on solid-state drives. Spinning hard drives also work fine, just without as large a speed advantage. When you run it normally, it opens an interactive view where you can move through folders with arrow keys, drill into subdirectories, sort by size or name, and delete files or empty directories without leaving the tool. There is also a non-interactive mode that prints results as plain text, which is useful for scripting or piping output to other programs. Gdu has a wide range of filtering options. You can ignore specific paths or patterns, limit results to files newer or older than a given age, include only certain file types, or browse inside zip and tar archives as if they were regular folders. You can export a scan to a JSON file and import it later for comparison, or store analyses in a database to track changes over time. Installation is a single binary download from the releases page, or it can be run inside Docker without installing anything on the host system. A configuration file in your home directory can save your preferred defaults so you do not have to retype common flags each time.
← dundee on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.