Operations 5 min read

Why Switch to Dust? A Faster, Colorful Alternative to du for Disk Usage

Dust is a Rust‑written, visually rich replacement for the traditional du command that shows directory sizes as a colored tree, making it easier to spot large folders and understand disk consumption at a glance.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Why Switch to Dust? A Faster, Colorful Alternative to du for Disk Usage

Overview

Dust is a Rust‑implemented alternative to the traditional du command. It displays disk usage as a colored tree, showing each file or directory’s size and its percentage of the total.

Installation

Via Cargo: cargo install du-dust Available in most Linux distribution repositories.

macOS users can install with Homebrew or MacPorts .

Basic Usage

Run dust in a directory to get a tree view of disk usage:

$ dust
5.7M   ┌── exa               │   2%
5.9M   ├── tokei             │   2%
6.1M   ├── dust              │   2%
...

Target a specific path: $ dust ~/Work/ Reverse the order (root at the bottom) with -r: $ dust -r ~/Work/ Limit recursion depth with -d <levels>, e.g., three levels:

$ dust -d 3 ~/Work/wildfly/jaxrs/target/classes
4.0K   ┌── jaxrs.xml               │   1%
4.0K   └─┴ subsystem-templates    │   1%
...

Key Options

-r

: Reverse output order. -d <n>: Show only n directory levels.

Repository

Source code and contribution guidelines are hosted at https://github.com/bootandy/dust .

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Operationsdisk usagedustdu alternative
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.