How to Fix bash: dust: command not found in Minimal Linux Distributions

The dust utility (distributed as du-dust) is an interactive, visual terminal replacement for the classic du (disk usage) command, presenting hierarchical folder sizes with ASCII graphical bar charts to make finding massive directories intuitive. Because minimal Linux server distributions, container environments, and cloud images include only standard coreutils by default, attempting to launch the binary returns bash: dust: command not found.

Install du-dust via Native Package Repositories

Modern Linux distribution software channels package dust under either dust or du-dust:

  • Ubuntu and Debian:
    sudo apt update && sudo apt install -y du-dust
  • Arch Linux:
    sudo pacman -S dust
  • Alpine Linux:
    sudo apk add dust
  • Fedora, RHEL, and CentOS Stream:
    sudo dnf install -y du-dust

Deploy Precompiled Binary Release via GitHub

When working on older enterprise releases lacking native packages, install the precompiled binary directly:

  1. Download the latest release archive from GitHub:
    curl -LO https://github.com/bootandy/dust/releases/download/v1.1.1/dust-v1.1.1-x86_64-unknown-linux-musl.tar.gz
  2. Extract the binary archive:
    tar -xzf dust-v1.1.1-x86_64-unknown-linux-musl.tar.gz
  3. Install the executable into your local system PATH:
    sudo mv dust-v1.1.1-x86_64-unknown-linux-musl/dust /usr/local/bin/ && sudo chmod +x /usr/local/bin/dust

Verify Installation and View Visual Disk Space Hierarchies

Confirm binary presence and scan local file structures:

  1. Confirm that the binary is discoverable:
    which dust && dust --version
  2. Run dust on your current directory to view top disk space consumers:
    dust
  3. Limit scan depth to two subfolder tiers for high-density filesystems:
    dust -d 2 /var/log

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.