Skip to content

dust - Intuitive Disk Usage Analyzer Cheatsheet

dust - Intuitive Disk Usage Analyzer Cheatsheet

Section titled “dust - Intuitive Disk Usage Analyzer Cheatsheet”

A more intuitive version of du (Disk Usage) written in Rust. Displays disk usage with visual bar charts, making it easy to spot what’s consuming space at a glance.

PlatformCommand
macOS (Homebrew)brew install dust
Ubuntu/Debiansudo apt install du-dust
Arch Linuxsudo pacman -S dust
Fedora/RHELsudo dnf install dust
Windows (Scoop)scoop install dust
Windows (Chocolatey)choco install dust
Cargo (All platforms)cargo install du-dust
Snapsudo snap install dust
Condaconda install -c conda-forge dust
Nixnix-env -iA nixpkgs.du-dust
CommandDescription
dustShow disk usage of current directory with bar chart
dust /path/to/dirAnalyze a specific directory
dust dir1 dir2Compare disk usage of multiple directories
dust -n 10Show top 10 largest entries
dust -n 30Show top 30 largest entries
dust -d 2Limit display to 2 directory levels deep
dust -d 1Show only immediate children (overview)
dust -rReverse output order (smallest first)
dust -pShow full paths for each entry
dust -sShow apparent size instead of disk usage
CommandDescription
dust -DShow only directories (no individual files)
dust -FShow only files (no directories)
dust -iHide hidden files and directories
dust -xStay on the same filesystem (don’t cross mount points)
dust -X node_modulesIgnore entries named “node_modules”
dust -X ".git"Ignore .git directories
dust -e "\.log$"Include only files matching regex pattern
dust -v "\.tmp$"Exclude files matching regex pattern
dust -z 1MOnly show entries larger than 1 MB
dust -z 100KOnly show entries larger than 100 KB
dust -tGroup results by file type/extension
dust -fCount number of files instead of disk usage
CommandDescription
dust -bRemove percentages and ASCII bars (bare output)
dust -BMove percentage bars to the right side
dust -cMonochrome output (no colors)
dust -CForce color output (even when piping)
dust -RScreen reader mode (no bars, adds depth column)
dust -jOutput in JSON format
dust --skip-totalDon’t show the total row at the top
CommandDescription
dust -o siSI units (KB, MB, GB — powers of 1000)
dust -o bShow sizes in bytes
dust -o kbShow sizes in kilobytes
dust -o kibShow sizes in kibibytes (1024)
dust -o mbShow sizes in megabytes
dust -o mibShow sizes in mebibytes (1024²)
dust -o gbShow sizes in gigabytes
dust -o gibShow sizes in gibibytes (1024³)
CommandDescription
dust -LFollow symbolic links
dust -PDisable progress indicator
dust --collapse folder_nameKeep specified folder collapsed in output
dust --files-from=list.txtRead paths from a newline-separated file
dust --files0-from=list.txtRead paths from a NUL-separated file
# Quick overview: what's eating disk space?
dust -d 1

# Find the biggest files in a project
dust -F -n 20

# Analyze home directory, ignoring caches
dust -X ".cache" -X "node_modules" ~

# Compare two directories side by side
dust ~/projects ~/downloads

# Machine-readable output for scripting
dust -j /var/log

# Find what's using space on root, same filesystem only
sudo dust -x -d 2 /

# Group by file type to see which extensions use most space
dust -t -n 20

# Show only directories larger than 100MB
dust -D -z 100M

dust displays a tree-like output with visual bars:

 5.0G   ┌── videos                │████████████████████████████████ │  50%
 2.5G   ├── photos                │████████████████                 │  25%
 1.5G   ├── documents             │██████████                       │  15%
 500M   ├── music                 │███                              │   5%
 500M   ├── downloads             │███                              │   5%
10.0G ┌─┴ home                    │████████████████████████████████ │ 100%
  • Size column: Total size of directory and its contents
  • Tree markers: Show parent-child relationships (┌──, ├──, └──)
  • Bar chart: Visual proportion of each entry
  • Percentage: Share of parent directory’s total size
Featuredudust
Visual barsNoYes
Color outputNoYes
Default sortingNoBy size
File type groupingNoYes (-t)
JSON outputNoYes (-j)
Regex filteringNoYes (-e, -v)
Minimum size filterNoYes (-z)
SpeedFastFast (Rust)