Parallelized disk usage analyzer that renders graphical charts for directory tree analysis
pdu is a CLI directory tree analyzer that calculates and visualizes disk usage with parallel processing. It generates graphical charts showing file and directory sizes, serving as an alternative to tools like dust and dutree. The tool leverages parallel computation to analyze directory structures quickly, displaying results in visual tree formats with customizable depth and chart sizing.
The tool supports hardlink detection and deduplication, progress reporting, and offers both library and JSON interfaces for extensibility. It can output data as JSON using the --json-output flag and accept JSON input with --json-input, enabling integration with other CLI tools through standard Unix pipes. pdu treats all hardlinks as equally real by default but provides options for deduplication when needed.
Benchmark results show pdu performs competitively against similar tools like dust, dua, ncdu, and gdu across different directory sizes. The tool is primarily targeted at system administrators and developers who need fast disk usage analysis with visual output, though it has limitations including ignorance of reflinks from COW filesystems and no symbolic link following.
# via Pacman
sudo pacman -S parallel-disk-usage
# via Cargo
cargo install parallel-disk-usage --bin pdu
