How to Install Duf Disk Usage Utility on Debian 12, 11 or 10

For Debian users seeking an efficient way to manage disk space, Duf Disk Usage Utility offers a robust solution. This guide focuses on how to install Duf Disk Usage Utility on Debian 12 Bookworm, Debian 11 Bullseye, or Debian 10 Buster. Duf stands out for its user-friendly, color-coded display and various customization options.

Key Features of Duf Disk Usage Utility for Debian Users

  • Color-Coded Outputs: Duf provides a visually appealing, color-coded display, making it easy to understand disk usage statistics at a glance.
  • Customization: The utility allows you to tailor the output, filtering in or out specific details as needed.
  • Cross-Platform Support: Duf is not limited to Debian or Linux; it’s also available for macOS and Windows.
  • Human-Readable Formats: Unlike some utilities that present raw data, Duf offers information in an easily digestible format.

Duf is especially useful for system administrators and those who require detailed disk usage statistics. Its straightforward installation and ease of use make it a valuable tool for any Debian user, whether you’re running Debian 12, 11, or 10.

Stay tuned for the step-by-step guide that will walk you through the installation process and help you get started with this powerful disk management tool.

Install Duf on Debian 12, 11, or 10 via APT

Step 1: Update Debian System Packages Before Duf Installation

Before installing any new software, it’s vital to ensure the system packages are current. This step helps in maintaining the stability and security of your system. Use the following command to update all existing packages on your Debian operating system:

sudo apt update && sudo apt upgrade

The sudo prefix executes the command with administrative privileges, while apt update updates the package list and apt upgrade upgrades the packages that are out of date.

Step 2: Install Duf via APT Command on Debian

After updating your system packages, you can proceed to install Duf. The Debian repositories include Duf by default, making it straightforward to install. This method is recommended due to its simplicity and to ensure you receive a version compatible with your Debian system. Execute the following command to install Duf:

sudo apt install duf

By running this command, you instruct the package manager to fetch and install the Duf utility. Once the installation is complete, Duf is ready for use

Install Duf on Debian 12, 11, or 10 via .deb

Step 1: Download the .deb Package on Debian

You might want to install Duf directly from the source in certain situations. This method involves downloading the .deb package from the project’s GitHub releases page. When opting for this approach, select the package that corresponds with your system’s architecture, such as ARM or AMD64.

Utilize the wget command to download the package. Replace the URL in the example below with the link to the latest release:


This command fetches the .deb package from the specified URL and saves it to your directory.

Step 2: Install the Duf via DPKG Command on Debian

After downloading the package, you will need to install it. For this step, the dpkg command is utilized. Please note that the file name in the command must match the one you downloaded. Here is an example command:

sudo dpkg -i duf_0.8.1_linux_amd64.deb

The sudo prefix grants administrative privileges, which are necessary for installing software. dpkg is the Debian package manager, and the -i flag specifies that you want to install the package.

It’s important to remember that when installing software this way, you’re bypassing the package manager’s repositories. This method can be beneficial for installing versions that may not yet be available in the repositories, but it also means that you’ll need to manage updates manually.

Utilizing Basic Duf Commands on Debian 12, 11, or 10

Now that Duf is installed on your system let’s dive into how you can maximize this utility by understanding its basic commands.

Launch Duf

Launch Duf by simply entering the duf command in your terminal. This presents you with a visually rich display of disk usage statistics.

Screenshot showing Duf terminal output on Debian 12, 11, or 10 Linux
Example of Duf terminal output on a Debian Linux system.

This basic command offers you a quick and efficient snapshot of the disk usage on your system.

Displaying Comprehensive System Files

For those who desire a more extensive analysis, Duf can display all system files, including duplicates, pseudo-files, and hidden ones. Execute the following command:

duf -all
Screenshot showing Duf terminal output on Debian 12, 11, or 10 Linux
Example of Duf terminal output on a Debian Linux system.

This option renders a more detailed and exhaustive view, beneficial for those who need more profound insights into the filesystem.

Customizing Output Display

Duf offers versatility by allowing you to filter and display specific information. This is achieved through the --output option followed by the attributes you want to see. For example, if you are only interested in the mount point, size, and usage, you can use the following command:

duf --output mountpoint,size,usage
Screenshot of 'duf --all' command output on Debian 12, 11, or 10 Linux
Example output of running ‘duf –all’ command on Debian 12, 11, or 10.

Tweaking Display Themes

Aesthetic customization can also enhance your experience. Duf supports different themes for its output display. You can switch between light and dark themes using the --theme option:

  • For Light Theme:
duf --theme light
  • For Dark Theme:
duf --theme dark

Accessing the Help Menu

It’s always good to know that help is at your fingertips. Access Duf’s help menu for more information about commands or for general guidance. This can be done by running:

duf --help

This command is handy when you need quick information on the available options and how to use them.


This article explored the step-by-step process for installing the Duf Disk Usage Utility on Debian 12/11/10. Starting from updating the system packages, we discussed the various methods of installing Duf, including via the Debian APT repository and through the .deb package. Additionally, we covered how to launch Duf and utilize its basic commands to analyze and monitor disk usage.

Duf’s intuitiveness and rich feature set make it an essential tool for system administrators and tech enthusiasts. It is recommended to keep the utility updated for optimal performance and to take advantage of new features and improvements.