hyperdu 2.1.0
dotnet tool install --global hyperdu --version 2.1.0
dotnet new tool-manifest
dotnet tool install --local hyperdu --version 2.1.0
#tool dotnet:?package=hyperdu&version=2.1.0
nuke :add-package hyperdu --version 2.1.0
hyperdu
A terminal disk usage explorer for big directory trees and slow filesystems. Written in C# on .NET 10, runs on Linux, macOS and Windows.
You can browse while it scans. The folder you are looking at gets scanned first, so you don't have to wait for the whole disk before you can open a directory.

Features
- Scans in parallel across a pool of worker threads, using direct libc calls on Linux and macOS.
- Scans what you look at first. The open folder and the highlighted folder jump ahead of the rest of the queue (marked with
⚡). - Tunes thread count to the disk: more threads on network mounts (NFS, SMB, SSHFS and others; Linux only) to hide latency, one thread on spinning HDDs (Linux and Windows) to avoid seek thrashing.
- Shows live progress: per-folder spinners,
+size/+filesdeltas and a scan time when each folder finishes. - Pause, resume and rescan without restarting.
- Skips Linux pseudo-filesystems (
/proc,/sys,/dev,/run), and optionally hidden files or paths you exclude.

Performance
hyperdu du against GNU du 9.4 on a 4-core Ubuntu 24.04 runner (warm cache, benchmark suite). Output matched du in all 64 scenarios.
Median time for du -s:
| Tree | GNU du |
hyperdu du |
Speedup |
|---|---|---|---|
| 250,000 files in 250 dirs | 290 ms | 120 ms | 2.4x |
| 50,000 files in 500 dirs | 62 ms | 36 ms | 1.7x |
Dev monorepo (15,000 files, node_modules, .git) |
22 ms | 16 ms | 1.4x |
| 20,000 files in one directory | 32 ms | 26 ms | 1.2x |
| 251 nested dirs, 23 files | 2.3 ms | 3.9 ms | 0.6x |
- Overall: 1.35x faster (geometric mean across 64 scenarios).
- Memory: about 8 MiB peak RSS (GNU
du: about 3 MiB). - Where it's slower: very small or deep, narrow trees, where process startup dominates (2.7 ms vs 0.7 ms on a 5-file directory).
Install
Homebrew (macOS, Linux):
brew install jav76/tap/hyperdu
WinGet (Windows):
winget install JaretVarn.hyperdu
.NET tool (any platform with the .NET 10 runtime; for hyperdu TUI and hyperdu du, not a du drop-in):
dotnet tool install -g hyperdu
Release binaries
Self-contained Native AOT binaries for Linux and macOS (x64, arm64) and Windows (x64, x86) are attached to each GitHub Release, along with a SHA256SUMS file. They need no .NET runtime and no ICU library. Linux and macOS .tar.gz archives include du and gdu symlinks next to hyperdu.
- Linux binaries need glibc 2.28 or newer (RHEL/Alma/Rocky 8, Debian 10, Ubuntu 20.04 and later).
- macOS binaries are not notarized. If Gatekeeper blocks a browser download, run
xattr -d com.apple.quarantine hyperdu.
tar -xzf hyperdu-linux-x64.tar.gz
./hyperdu --version
Use as du
Invoked as du or gdu (a symlink to the Native AOT binary), or as hyperdu du, hyperdu runs as a non-interactive du with matching output. Plain hyperdu opens the explorer.
- GNU dialect on Linux, and for
gdueverywhere: 1024-byte blocks,--apparent-size,-b,--block-size,--exclude,--files0-from,--inodes,--time,--max-depthand more. - BSD dialect for
duon macOS: 512-byte blocks,BLOCKSIZE,-A,-B,-g,-I,-n,-r,-dand BSD-style errors. - Force a dialect with
HYPERDU_DU_DIALECT=gnuorbsd. Set worker threads withHYPERDU_THREADS=<N>.
Install the binary and symlinks ahead of /usr/bin on PATH:
# System-wide (works with sudo, cron and scripts)
sudo tar -xzf hyperdu-linux-x64.tar.gz -C /usr/local/bin hyperdu du gdu
# Current user only
mkdir -p ~/.local/bin && tar -xzf hyperdu-linux-x64.tar.gz -C ~/.local/bin hyperdu du gdu
- Never replace
/usr/bin/du. The OS package manager owns it. Remove hyperdu withrm -f /usr/local/bin/{du,gdu,hyperdu}. sudo,cronand#!/bin/shscripts usually ignore~/.local/binand shell aliases. Use/usr/local/binif they should get hyperdu.- The .NET tool can't be a
dudrop-in: it ignores the symlink name and has JIT startup cost. Usehyperdu du ...with it, or use the release archive.
Usage
hyperdu [option]... [path]
path defaults to the current directory. Short flags align with GNU du.
| Option | Description | Default |
|---|---|---|
-j, --threads <N> |
Number of scanner worker threads. | CPU cores; max(32, 2 x cores) on network mounts; 1 on HDDs |
--apparent-size |
Count apparent file sizes instead of allocated 512-byte disk blocks. | Off (allocated blocks) |
-b, --bytes |
Count apparent sizes and display exact byte counts. | Off |
-h, --human-readable |
Format sizes in binary multiples of 1024. | On (in explorer UI) |
--si |
Format sizes in SI powers of 1000. | Off |
-t, --threshold <SIZE> |
Hide entries smaller than SIZE (+SIZE / SIZE) or greater than SIZE (-SIZE). |
None |
-l, --count-links |
Count hard-linked files multiple times. | Off (deduplicated) |
-x, --one-file-system |
Skip directories and targets on different filesystems. | Off |
-L, --dereference |
Follow symbolic links. | Off |
--exclude <PATTERN> |
Skip files and directories matching glob PATTERN. Repeatable. |
None |
-X, --exclude-from <FILE> |
Read exclude glob patterns from FILE (one per line, - for stdin). |
None |
--skip-hidden |
Skip hidden and system files. | Off |
-V, --version |
Print the version and exit. | |
--help |
Print help and exit. |
Set HYPERDU_NATIVE_IO=0 to use the .NET file enumerator instead of direct libc calls on Linux and macOS. It is slower and cannot open names that are not valid UTF-8.
Keys
| Key | Action |
|---|---|
↑ / ↓ |
Move the selection |
Enter |
Open the selected folder |
Backspace / ← |
Go up a level |
Space |
Pause or resume scanning |
R |
Rescan the selected folder (or the current one) |
Q / Esc |
Quit |
How prioritization works
The scan queue has three priority levels:
| Priority | What gets it |
|---|---|
| High | The highlighted folder and everything under it |
| Medium | The folder you opened and everything under it |
| Low | Everything else |
Priorities update as you move, so moving the cursor onto a large folder makes the scanner work on it next.
In the list, a spinner (⠏⠋) means a folder is still scanning. ⚡ next to the spinner means it is prioritized. No marker means it is done.
Below, /var was opened while / was still scanning. /var (medium) and the highlighted lib (high) are marked ⚡, and the scanner is already working inside /var/lib:

Building from source
Requires the .NET 10 SDK.
git clone https://github.com/jav76/hyperdu.git
cd hyperdu
dotnet run --project hyperdu.Cli -- [option]... [path]
./publish.sh builds self-contained single-file binaries for linux-x64, linux-arm64, win-x64, win-x86, osx-x64 and osx-arm64 into publish/.
Versions come from git tags via MinVer.
License
MIT. Copyright (c) 2026 Jaret Varn.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.