diskus
brew install diskus
v0.9.0
Apache-2.0 OR MIT
Minimal, fast alternative to 'du -sh'
34
30-day installs · #5527
92
90-day · #5764
466
365-day · #5275
1.2k
★ GitHub stars · updated 6mo ago
Build dependencies
GitHub topics
cli
command-line
filesystem
rust
tool
Links
- https://github.com/sharkdp/diskus
- GitHub: sharkdp/diskus
- Brew formula source: Formula/d/diskus.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"rust"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Minimal, fast alternative to \u0027du -sh\u0027",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:58+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "diskus",
"github_default_branch": "master",
"github_last_commit_at": "2026-02-14T12:04:30Z",
"github_readme_excerpt": "# diskus\n\n[](https://github.com/sharkdp/diskus/actions/workflows/CICD.yml)\n\n*A minimal, fast alternative to `du -sh`.*\n\n`diskus` is a very simple program that computes the total size of the current directory. It is a\nparallelized version of `du -sh`. On my 8-core laptop, it is about ten times faster than `du` with\na cold disk cache and more than three times faster with a warm disk cache.\n\n``` bash\n\u003e diskus\n9.59 GB (9,587,408,896 bytes)\n```\n\n## Benchmark\n\nThe following benchmarks have been performed with [hyperfine](https://github.com/sharkdp/hyperfine) on\na moderately large folder (15GB, 100k directories, 400k files). Smaller folders are not really of any\ninterest since all programs would finish in a reasonable time that would not interrupt your workflow.\n\nIn addition to `du` and `diskus`, we also add [tin-summer](https://github.com/vmchale/tin-summer) (`sn`) and\n[`dust`](https://github.com/bootandy/dust) in our comparison. Both are also written in Rust and provide\nmuch more features than `diskus` (check them out!). The optimal number of threads for `sn` (`-j` option) was\ndetermined via `hyperfine --parameter-scan`.\n\n### Cold disk cache\n\n```bash\nsudo -v\nhyperfine --prepare \u0027sync; echo 3 | sudo tee /proc/sys/vm/drop_caches\u0027 \\\n \u0027diskus\u0027 \u0027du -sh\u0027 \u0027sn p -d0 -j8\u0027 \u0027dust -d0\u0027\n```\n(the `sudo`/`sync`/`drop_caches` commands are a way to\n[clear the filesystem caches between benchmarking runs](https://github.com/sharkdp/hyperfine#io-heavy-programs))\n\n| Command | Mean [s] | Min [s] | Max [s] | Relative |\n|:---|---:|---:|---:|---:|\n| `diskus` | 1.746 \u00b1 0.017 | 1.728 | 1.770 | 1.00 |\n| `du -sh` | 17.776 \u00b1 0.549 | 17.139 | 18.413 | 10.18 |\n| `sn p -d0 -j8` | 18.094 \u00b1 0.566 | 17.482 | 18.579 | 10.36 |\n| `dust -d0` | 21.357 \u00b1 0.328 | 20.974 | 21.759 | 12.23 |\n\n\n### Warm disk cache\n\nOn a warm disk cache, the differences are smaller:\n```bash\nhyperfine --warmup 5 \u0027diskus\u0027 \u0027du -sh\u0027 \u0027sn p -d0 -j8\u0027 \u0027dust -d0\u0027",
"github_repo": "sharkdp/diskus",
"github_stars": 1221,
"github_topics": [
"cli",
"command-line",
"filesystem",
"rust",
"tool"
],
"homepage": "https://github.com/sharkdp/diskus",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 34,
"installs_365d": 466,
"installs_90d": 92,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0 OR MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "diskus",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 5527,
"rank_365d": 5275,
"rank_90d": 5764,
"raw_hash": "6a64081ba750dce8",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/d/diskus.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "0.9.0",
"versioned_formulae": [],
"why_use_this": null
}