Skip to content
المشاريع

حول

A fast disk usage browser for the terminal: browse, sort and delete, with a treemap and cleanup recommendations.

أدوات التطوير

كيف تُقاس هذه الأرقام

262 نجمة7 التفرعات +67 خلال 24 ساعة

ما يمكنك فعله

  • Fast. Parallel scanning tuned to the storage device, and you can start browsing before it finishes.
  • Cleanup view. Recognises caches, build folders, SDKs and old installers, says how safe each is to delete and how much it frees. Rules are extendable.
  • Treemap, tree mode, duplicates and largest files, one key away from the list.
  • Opens last time's scan at once. A repeat dfdu PATH shows the cached scan and refreshes only what changed.

النمو المقاس للنجوم

خلال 24 ساعة
+٦٧
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل
dfdu

CI Release crates.io License: MIT MSRV OpenSSF Scorecard

A disk usage browser for the terminal and the desktop. Browse, sort and delete, see what your space is made of (caches, build output, emulators, containers), and get a list of what is safe to remove.

Browsing a home directory, the treemap and the cleanup view

Features

  • Fast. Parallel scanning tuned to the storage device, and you can start browsing before it finishes.
  • Cleanup view. Recognises caches, build folders, SDKs and old installers, says how safe each is to delete and how much it frees. Rules are extendable.
  • Treemap, tree mode, duplicates and largest files, one key away from the list.
  • Opens last time's scan at once. A repeat dfdu PATH shows the cached scan and refreshes only what changed.
  • History. Every scan is recorded, so you can ask what grew since last week.
  • Remote. Browse and delete on another machine over ssh.
  • Desktop app. The same browser in a window for macOS, Linux and Windows, with the same keys as the terminal browser and a command palette.
  • Scriptable. JSON and NDJSON output, a CI mode that fails above a size limit, and ncdu export import.
  • Safe by default. Deletes go to the Trash; permanent deletes ask you to type delete. --read-only removes the delete keys.

Install

curl -fsSL https://dfdu.app/install.sh | sh                 # macOS, Linux
brew install jordond/tap/dfdu                               # macOS, Linux
yay -S dfdu-bin                                             # Arch Linux

Windows:

powershell -ExecutionPolicy Bypass -c "irm https://github.com/jordond/dfdu/releases/latest/download/dfdu-installer.ps1 | iex"

The desktop app:

brew install --cask jordond/tap/dfdu-gui                    # macOS
curl -fsSL https://dfdu.app/install.sh | sh -s -- --gui     # macOS, Linux, with the CLI

The install docs cover release binaries, cargo, Nix, the install script's options, and the desktop app's downloads for Linux and Windows.

With an AI assistant, paste this prompt:

Install dfdu for me. Follow the instructions at https://dfdu.app/llms.txt and pick the method that fits this machine.

Usage

dfdu ~                    # browse a directory
dfdu --disks              # pick a disk first
dfdu --remote server /srv # another host over ssh

Keys follow ncdu. Press ? in the app for the full list, or see Browsing.

dfdu report ~/dev         # what the cleanup rules found
dfdu clean ~/dev          # dry run of the recommended deletes
dfdu diff ~ --since 7d    # what grew in the last week

Command line has the commands for scripts and CI, with JSON output and size limits.

Docs

  • Install: every install method, options and uninstalling
  • Browsing: keys, views, mounts and the scan cache
  • Command line: the commands for scripts and CI
  • Desktop app: installing and using the desktop app
  • Cleanup rules: the built-in rules and how to write your own
  • Themes: five built-in themes and custom TOML themes
  • Benchmarks: scan time and memory against other tools
  • Contributing: building, testing and releasing

Similar tools

Other disk usage tools worth a look:

  • ncdu: the classic ncurses disk usage browser, whose keys dfdu follows
  • gdu: a fast disk usage analyzer with a console interface, written in Go
  • dua: disk usage analyzer with an interactive mode, written in Rust
  • Dust: a more intuitive version of du, written in Rust
  • pdu: parallel disk usage, written in Rust

License

MIT

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…