Dfdu: Fast disk usage browser for the terminal and desktop github.com · 14 point...
HN Best 200 @best
Dfdu: Fast disk usage browser for the terminal and desktop github.com · 14 points · 1 comments · HN thread
TL;DR dfdu is a disk usage browser for the terminal and desktop, written to find what is taking space and which parts are safe to delete. It scans in parallel, caches results so repeat scans only refresh what changed, and offers a cleanup view that rates how safe each deletion is. The project's README lists install methods for macOS, Linux and Windows, plus a desktop app.
- Parallel scanning tuned to the storage device, and browsing can start before the scan finishes.
- Cleanup view recognises caches, build folders, SDKs and old installers, rates how safe each is to delete and how much space it frees; rules are extendable.
- Scan history lets you ask what grew since a given time, e.g. dfdu diff ~ --since 7d.
- Remote browsing and deletion over ssh, and a desktop app for macOS, Linux and Windows with the same keys.
- Safe by default: deletes go to the Trash, permanent deletes require typing delete, and --read-only disables delete keys.
- Scriptable with JSON/NDJSON output, a CI mode that fails above a size limit, and ncdu export import.
Discussion The thread has only one comment, so there is no real discussion. The single commenter asks how dfdu's speed compares to ncdu and gdu on very large directories full of small files such as node_modules, and welcomes the combination of a terminal and desktop interface in one tool. The mood is neutral and curious.
- Interested in speed comparison against ncdu and gdu (a few): The commenter has used ncdu and gdu for years and wants to know how dfdu performs on huge directories with many small files like node_modules. No benchmark data is given in the comment, though the project links a benchmarks page.
- Terminal plus desktop UI in one tool is appealing (a few): The commenter sees having both a TUI and a desktop UI in a single tool as a nice touch.