The duf utility (Disk Usage/Free Utility) is a modern, colourful terminal replacement for the classic df command, rendering filesystem tables, mount points, block device usage, and drive capacity with responsive ANSI progress bars. Because stripped-down Linux server distributions, container environments, and minimal cloud images omit third-party Go utilities by default, attempting to launch the binary returns bash: duf: command not found.
Install duf via Native Package Repositories
Modern Linux distribution software channels package duf directly:
- Ubuntu (22.04+) and Debian (11+):
sudo apt update && sudo apt install -y duf - Arch Linux:
sudo pacman -S duf - Alpine Linux:
sudo apk add duf - Fedora, RHEL, and CentOS Stream:
sudo dnf install -y duf
Deploy Precompiled Binary Release via GitHub
When working on older enterprise releases lacking native packages, install the precompiled binary directly:
- Download the latest release archive from GitHub:
curl -LO https://github.com/muesli/duf/releases/download/v0.8.0/duf_0.8.0_linux_x86_64.tar.gz - Extract the binary archive:
tar -xzf duf_0.8.0_linux_x86_64.tar.gz - Install the executable into your local system PATH:
sudo mv duf /usr/local/bin/ && sudo chmod +x /usr/local/bin/duf
Verify Installation and View Visual Disk Space Metrics
Confirm binary presence and view formatted disk space tables:
- Confirm that the binary is discoverable:
which duf && duf --version - Run duf to view all mounted block devices, pseudo-filesystems, and network shares:
duf - Display only local physical storage drives:
duf --only local