← 返回命令列表

Linux command

dust 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show disk usage

dust

Show disk usage

dust -d [2]

Show disk usage

dust [/path/to/directory]

Show sizes in SI units

dust -H

Show only files

dust -F

Show apparent size

dust -s

Reverse sort order

dust -r

Show disk usage

dust -p

说明

dust (du + rust) is a modern, intuitive disk usage analyzer that shows the size of directories and files in a tree structure. It provides a visual representation with percentage bars, making it easy to identify large files and directories. Unlike traditional du, dust displays results in a tree format with visual size indicators, automatically limiting depth for readable output. It defaults to showing the largest items first and includes a percentage column showing relative sizes. The tool is written in Rust for performance and handles large directory trees efficiently with parallel processing.

参数

-d _n_, --depth _n_
Maximum depth to display.
-n _num_
Number of items to show.
-r, --reverse
Reverse sort order.
-s, --apparent-size
Show apparent size instead of disk usage.
-f
Show file count instead of size.
-H, --si
Print sizes in SI units (powers of 1000 instead of 1024).
-p, --no-percent-bars
Hide percentage bars.
-c, --no-colors
Disable colored output.
-b, --no-bars
Hide bars entirely.
-D, --only-dir
Only show directories, not files.
-F, --only-file
Only show files, not directories.
-e _regex_, --filter _regex_
Filter by regular expression.
-v _regex_, --invert-filter _regex_
Exclude items matching regex.
-X, --ignore-directory _name_
Ignore specified directory.
-x, --one-filesystem
Stay on one filesystem.
-j, --threads _n_
Number of threads to use.
-z _size_, --min-size _size_
Minimum size to display (e.g., 1M).

FAQ

What is the dust command used for?

dust (du + rust) is a modern, intuitive disk usage analyzer that shows the size of directories and files in a tree structure. It provides a visual representation with percentage bars, making it easy to identify large files and directories. Unlike traditional du, dust displays results in a tree format with visual size indicators, automatically limiting depth for readable output. It defaults to showing the largest items first and includes a percentage column showing relative sizes. The tool is written in Rust for performance and handles large directory trees efficiently with parallel processing.

How do I run a basic dust example?

Run `dust` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d _n_, --depth _n_ do in dust?

Maximum depth to display.