scullionw/dirstat-rs

(fastest?) disk usage cli, similar to windirstat.

Rust

194

69 commits

updated May 6, 2026

See the code

README

dirstat-rs

Fast, cross-platform disk usage CLI

Crates.io Docs.rs Language Platforms License

2X faster than du

4X faster than ncdu, dutree, dua, du-dust

6X faster than windirstat

(On 4-core hyperthreaded cpu)

Installation

Homebrew (macOS only)

brew tap scullionw/tap
brew install dirstat-rs

Or if you prefer compiling yourself

from crates.io:

    cargo install dirstat-rs
    

or latest from git:

    cargo install --git "https://github.com/scullionw/dirstat-rs"
    

or from source:

    cargo build --release
    sudo chmod +x /target/release/ds
    sudo cp /target/release/ds /usr/local/bin/

Usage

Current directory

    $ ds

Specific path

    $ ds PATH

Choose depth

    $ ds -d 3

Show apparent file size

    $ ds -a PATH

Override minimum size threshold

    $ ds -m 0.2 PATH






Contributors

scullionw

67 commits

Mart-Bogdan

2 commits

scullionw/dirstat-rs

(fastest?) disk usage cli, similar to windirstat.

Rust

194

69 commits

updated May 6, 2026

See the code

README

dirstat-rs

Fast, cross-platform disk usage CLI

Crates.io Docs.rs Language Platforms License

2X faster than du

4X faster than ncdu, dutree, dua, du-dust

6X faster than windirstat

(On 4-core hyperthreaded cpu)

Installation

Homebrew (macOS only)

brew tap scullionw/tap
brew install dirstat-rs

Or if you prefer compiling yourself

from crates.io:

    cargo install dirstat-rs
    

or latest from git:

    cargo install --git "https://github.com/scullionw/dirstat-rs"
    

or from source:

    cargo build --release
    sudo chmod +x /target/release/ds
    sudo cp /target/release/ds /usr/local/bin/

Usage

Current directory

    $ ds

Specific path

    $ ds PATH

Choose depth

    $ ds -d 3

Show apparent file size

    $ ds -a PATH

Override minimum size threshold

    $ ds -m 0.2 PATH






Contributors

scullionw

67 commits

Mart-Bogdan

2 commits

Languages

Rust

100.0%