Explore the Installation of Duf, a Stylish Disk Usage Tool
Duf is a robust disk usage tool written in Golang, designed as a modern substitute for the traditional df command. It's a cross-platform utility that presents disk usage statistics in a visually appealing format. This guide illustrates how to install Duf on Ubuntu 20.04.
Features of Duf
- Overview of mounted volumes
- Light and Dark themes
- JSON output support
- Inode information listing
- Output sorting capabilities
Installation Methods
Method 1: Installing Duf via Debian Package
Download and install the Duf Debian package from GitHub using these commands:
wget https://github.com/muesli/duf/releases/download/v0.6.0/duf_0.6.0_linux_amd64.deb
dpkg -i duf_0.6.0_linux_amd64.deb
Method 2: Installing Duf from Source Code
Ensure Go is installed (version 1.12 or later). Clone the Duf repository:
git clone https://github.com/muesli/duf.git
Build from source:
cd duf go build
Using Duf
Launch Duf to monitor disk usage:
duf
Display all file systems:
duf -all
List specific devices or mount points:
duf /root
Sort output by column:
duf --sort size
Show or hide specific columns:
duf --output mountpoint,size,usage
Switch between themes:
duf -theme dark duf --theme light
Output in JSON format:
duf --json
For additional options, consult:
duf --help
Duf offers a refined way to monitor disk usage, enhancing your system management experience. Try it out for a more intuitive view of your disk space.







