Parallel Disk Usage (pdu) is a command-line program that charts disk use for files and directories. It scans directory trees in parallel and prints a graphical usage breakdown in the terminal.
Overview
Parallel Disk Usage, invoked as pdu, is a CLI tool that analyzes how much space files and directories consume and renders that information as a graphical chart in the terminal. The program is designed for highly parallel scanning of directory trees so large folder hierarchies can be summarized quickly.
The chart supports relative comparison between separate files and directories. You can limit tree depth, adjust chart size, optionally show progress while scanning, and optionally detect or deduplicate hardlinks. All hardlinks are treated as equally real by default. The tool does not follow symbolic links and does not account for reflinks on copy-on-write filesystems such as BTRFS and ZFS.
The same project ships pdu as a standalone binary and as a library crate for custom tools. The CLI exposes JSON input and output flags so disk usage data can be piped to or from other command-line programs. Binaries can be downloaded from GitHub releases or installed via crates.io; Arch Linux also packages it in its official repository.
Like other terminal disk-usage utilities such as dust and dutree, pdu focuses on parallel analysis and in-terminal visualization rather than a separate graphical interface.
Key features
- Graphical terminal chart of disk usage
- Highly parallel directory scanning
- Relative size comparison between paths
- Customizable tree depth and chart size
- Optional hardlink detection and deduplication
- JSON input and output for CLI piping
- Optional library crate for custom tools
- Optional progress reporting while scanning
Use cases
- Finding which directories use the most disk space
- Comparing usage across several paths in one chart
- Piping disk usage data to other CLI tools via JSON
- Building custom analyzers on the library crate
Does the same job as
Parallel Disk Usage doesn't name these products itself, but its own description shows it does the same job.