| Crates.io | parallel-disk-usage |
| lib.rs | parallel-disk-usage |
| version | 0.21.1 |
| created_at | 2021-05-27 13:06:22.44933+00 |
| updated_at | 2025-09-02 02:28:05.768173+00 |
| description | Highly parallelized, blazing fast directory tree analyzer |
| homepage | |
| repository | https://github.com/KSXGitHub/parallel-disk-usage.git |
| max_upload_size | |
| id | 402715 |
| size | 481,455 |
Highly parallelized, blazing fast directory tree analyzer.
pdu is a CLI program that renders a graphical chart for disk usages of files and directories, it is an alternative to dust and dutree.
The benchmark was generated by a GitHub Workflow and uploaded to the release page.

pdu proportionally slower).pdu slightly slower)../test.sh && ./test.sh --release
| name | type | default value | description |
|---|---|---|---|
FMT |
true or false |
true |
Whether to run cargo fmt |
LINT |
true or false |
true |
Whether to run cargo clippy |
DOC |
true or false |
false |
Whether to run cargo doc |
BUILD |
true or false |
true |
Whether to run cargo build |
TEST |
true or false |
true |
Whether to run cargo test |
BUILD_FLAGS |
string | (empty) | Space-separated list of flags for cargo build |
TEST_FLAGS |
string | (empty) | Space-separated list of flags for cargo test |
./run pdu "${arguments[@]}"
"${arguments[@]}": List of arguments to pass to pdu.cargo build --bin pdu
The resulting executable is located at target/debug/pdu.
cargo build --bin pdu --release
The resulting executable is located at target/release/pdu.
./generate-completions.sh
parallel-disk-usageThe parallel-disk-usage crate is both a binary crate and a library crate. If you desire features that pdu itself lacks (that is, after you have asked the maintainer(s) of pdu for the features but they refused), you may use the library crate to build a tool of your own. The documentation for the library crate can be found in docs.rs.
Alternatively, the pdu command provides --json-input flag and --json-output flag. The --json-output flag converts disk usage data into JSON and the --json-input flag turns said JSON into visualization. These 2 flags allow integration with other CLI tools (via pipe, as per the UNIX philosophy).
Beware that the structure of the JSON tree differs depends on the number of file/directory names that were provided (as CLI arguments):
. or the provided name).(total) (which is not a real path), and the provided names would correspond to the children of the tree root.Go to the GitHub Release Page and download a binary.
Prerequisites:
cargo install parallel-disk-usage --bin pdu
sudo pacman -S parallel-disk-usage