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.
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 .
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
