← 返回命令列表

Linux command

pdu 命令

文本

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

常用示例

Show disk usage of the current directory

pdu

Show disk usage of a specific directory

pdu [path/to/directory]

Compare multiple directories

pdu [dir1] [dir2]

Show apparent sizes instead of block sizes

pdu --quantity=apparent-size [path/to/directory]

Show all entries regardless of size

pdu --min-ratio=0 [path/to/directory]

Output as JSON

pdu --json-output [path/to/directory]

Visualize a previously saved JSON file

pdu --json-input < [disk-usage.json]

Show disk usage using binary units (1K = 1024 B)

pdu --bytes-format=binary [path/to/directory]

Deduplicate hardlinks when calculating sizes

pdu --deduplicate-hardlinks [path/to/directory]

说明

pdu (Parallel Disk Usage) is a highly parallelized, fast directory tree analyzer that renders graphical bar charts of disk usage in the terminal. It serves as an alternative to dust and dutree, with support for JSON output and comparison of multiple directories. By default, pdu measures block size, sorts entries by size (largest first), limits display to 10 levels deep, hides entries smaller than 1% of the total, and displays sizes in metric units (1K = 1000 B).

FAQ

What is the pdu command used for?

pdu (Parallel Disk Usage) is a highly parallelized, fast directory tree analyzer that renders graphical bar charts of disk usage in the terminal. It serves as an alternative to dust and dutree, with support for JSON output and comparison of multiple directories. By default, pdu measures block size, sorts entries by size (largest first), limits display to 10 levels deep, hides entries smaller than 1% of the total, and displays sizes in metric units (1K = 1000 B).

How do I run a basic pdu example?

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

Where can I find more pdu examples?

This page includes 9 examples for pdu, plus related commands for nearby Linux tasks.