hn.today

Dfdu: Fast disk usage browser for the terminal and desktop

github.com92 points30 comments
Screenshot of Dfdu: Fast disk usage browser for the terminal and desktop

Dfdu is a disk-usage browser available in the terminal and as a desktop app for macOS, Linux, and Windows. It helps users see what is consuming storage, navigate and sort files, and remove unwanted data. Parallel scanning is tuned to the storage device, and browsing can begin before a scan finishes. It caches prior scans so a directory opens quickly next time and refreshes only changed areas; it also records scan history to show what has grown over time. Views include a treemap, directory tree, duplicate files, and largest files, with keyboard controls modeled on ncdu.

A cleanup view identifies common space consumers such as caches, build folders, SDKs, emulators, containers, and old installers, estimates the space recoverable, and indicates how safe each item is to delete. Rules can be extended. Deletion sends files to the Trash by default; permanent removal requires typing a confirmation, and read-only mode disables deletion. Dfdu can also browse remote directories over SSH and supports reports, dry-run cleanup recommendations, and growth comparisons. For automation, it offers JSON and NDJSON output, CI checks that fail when usage exceeds a limit, and ncdu import/export. Installation options include shell scripts, package managers, and release downloads; documentation covers setup, commands, cleanup rules, themes, and benchmarks.

Read on github.com30 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Show HN: Rust Commander

Show HN: Rust Commander

Rust Commander is a Rust terminal file manager modeled on Midnight Commander, with dual-pane navigation, a persistent shell, archive and remote browsing, and background file operations. Version 0.3.1 adds file-change alerts, viewer copy controls, customizable skins, and faster SFTP previews and copying. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.