The pdu (Parallel Disk Usage) is a command line tool designed for analyzing disk usage within a directory tree and providing a graphical representation of that usage. This tutorial demonstrates how to install pdu directory analyzer on Ubuntu 24.04.
Install pdu
Download pdu executable and place it into /usr/local/bin
directory:
sudo wget -qO /usr/local/bin/pdu https://github.com/KSXGitHub/parallel-disk-usage/releases/latest/download/pdu-x86_64-unknown-linux-gnu
Set execute permission for file:
sudo chmod a+x /usr/local/bin/pdu
We can check pdu version with command:
pdu --version
Testing pdu
To analyze the disk usage of a specific directory, supply the directory path as an argument. For instance, the following command analyzes the /usr
directory up to a depth of two levels:
sudo pdu --max-depth 2 /usr
Uninstall pdu
To uninstall pdu, remove the related file:
sudo rm -rf /usr/local/bin/pdu
Leave a Comment
Cancel reply