$linuxjunkies
>

dust(1)

dust is a user-friendly alternative to du that shows disk space usage in a visually intuitive way with ASCII trees and percentages.

UbuntuDebianFedoraArch

Synopsis

dust [OPTION]... [PATH]...

Description

dust recursively analyzes disk usage and displays results as an interactive tree, making it easy to identify large files and directories at a glance. Unlike du, dust uses a human-readable format by default and shows percentages to contextualize space consumption.

Results are sorted by size in descending order, and the output is colored for better readability. dust is particularly useful for finding disk hogs quickly without memorizing du flags.

Common options

FlagWhat it does
-r, --depth NUMMaximum depth to recurse; 1 shows only the target directory
-d, --min-size SIZEOnly show files/dirs larger than SIZE (e.g., 50mb, 1gb)
-x, --no-crossDon't cross filesystem boundaries
-z, --min-size-ratio SIZEFilter directories by minimum percentage of total
-i, --ignore-all-in-file FILERead patterns from file to exclude (like .gitignore)
-A, --aggregation-depth NUMDisplay depth where files/dirs are aggregated in output
-s, --siUse SI units (1000) instead of binary (1024)
-n, --number-of-lines NUMShow top NUM largest items only
-c, --no-colorsDisable colored output
-b, --no-barsHide percentage bars in output

Examples

Show disk usage for current directory and subdirectories

dust

Analyze disk usage under /home directory

dust /home

Show only 2 levels deep in /var (immediate subdirectories)

dust -r 2 /var

List only items larger than 100mb in /home/user

dust -d 100mb /home/user

Analyze from root without crossing into other filesystems (skip /mnt, /proc, etc.)

dust -x /

Show only the top 5 largest items in /opt

dust -n 5 /opt

Display sizes in SI units (MB, GB) instead of binary (MiB, GiB)

dust -s /home

Analyze /project while respecting exclusions in .gitignore

dust -i .gitignore /project

Related commands