How to Install Duf on Debian 13

Duf (Disk Usage Free utility) is a free and open-source tool written in Golang. It serves as a modern alternative to the traditional df command, offering a colorful, easy-to-read terminal interface. It can also display disk usage in JSON format and works on Linux, BSD, Windows, and macOS.

In this guide, we will show how to install and use Duf on Debian 13 (Trixie).

Prerequisites

  • A system running Debian 13.
  • Access to a root or sudo user account.

Update the System

Update existing system packages before installation.

apt update
apt upgrade

Download Duf .deb Package

At the time of writing, version 0.8.1 is the latest. You can check for newer versions from the Duf GitHub Releases page.

We’ll use wget to download the .deb package:

wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb

Output:

Connecting to release-assets.githubusercontent.com (release-assets.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 917644 (896K) [application/octet-stream]
Saving to: ‘duf_0.8.1_linux_amd64.deb’

duf_0.8.1_linux_amd 100%[===================>] 896.14K  --.-KB/s    in 0.05s

2025-08-02 15:13:11 (17.8 MB/s) - ‘duf_0.8.1_linux_amd64.deb’ saved [917644/917644]

Install the Package

Install the downloaded .deb file using dpkg:

apt install dpkg -y
dpkg -i duf_0.8.1_linux_amd64.deb

Output:

root@server:~# apt install dpkg -y
dpkg -i duf_0.8.1_linux_amd64.deb
dpkg is already the newest version (1.22.21).
The following package was automatically installed and is no longer required:
  linux-image-6.12.33+deb13-amd64
Use 'apt autoremove' to remove it.

Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
Selecting previously unselected package duf.
(Reading database ... 41439 files and directories currently installed.)
Preparing to unpack duf_0.8.1_linux_amd64.deb ...
Unpacking duf (0.8.1) ...
Setting up duf (0.8.1) ...

Use the Duf Command

Run the duf command to check disk usage:

duf

Output:

root@server:~# duf
╭────────────────────────────────────────────────────────────────────╮
│ 3 local devices                                                    │
├────────────┬────────┬────────┬────────┬────────┬──────┬────────────┤
│ MOUNTED ON │   SIZE │   USED │  AVAIL │  USE%  │ TYPE │ FILESYSTEM │
├────────────┼────────┼────────┼────────┼────────┼──────┼────────────┤
│ /          │  19.4G │   1.5G │  16.8G │   8.0% │ ext4 │ /dev/vda4  │
│ /boot      │ 447.1M │ 190.8M │ 227.9M │  42.7% │ ext4 │ /dev/vda2  │
│ /boot/efi  │ 919.7M │ 260.0K │ 855.8M │   0.0% │ ext4 │ /dev/vda1  │
╰────────────┴────────┴────────┴────────┴────────┴──────┴────────────╯
╭────────────────────────────────────────────────────────────────────────╮
│ 8 special devices                                                      │
├──────────────┬────────┬────────┬────────┬────────┬────────┬────────────┤
│ MOUNTED ON   │   SIZE │   USED │  AVAIL │  USE%  │ TYPE   │ FILESYSTEM │
├──────────────┼────────┼────────┼────────┼────────┼────────┼────────────┤
│ /dev         │   2.9G │     0B │   2.9G │        │ devtmp │ udev       │
│              │        │        │        │        │ fs     │            │
│ /dev/shm     │   2.9G │     0B │   2.9G │        │ tmpfs  │ tmpfs      │
│ /run         │ 593.2M │ 548.0K │ 592.6M │   0.1% │ tmpfs  │ tmpfs      │
│ /run/credent │   1.0M │     0B │   1.0M │        │ tmpfs  │ tmpfs      │
│ ials/getty@t │        │        │        │        │        │            │
│ ty1.service  │        │        │        │        │        │            │
│ /run/credent │   1.0M │     0B │   1.0M │        │ tmpfs  │ tmpfs      │
│ ials/systemd │        │        │        │        │        │            │
│ -journald.se │        │        │        │        │        │            │
│ rvice        │        │        │        │        │        │            │
│ /run/lock    │   5.0M │     0B │   5.0M │        │ tmpfs  │ tmpfs      │
│ /run/user/10 │ 593.2M │   8.0K │ 593.2M │   0.0% │ tmpfs  │ tmpfs      │
│ 00           │        │        │        │        │        │            │
│ /tmp         │   2.9G │     0B │   2.9G │        │ tmpfs  │ tmpfs      │
╰──────────────┴────────┴────────┴────────┴────────┴────────┴────────────╯

Duf Usage Examples

To list all pseudo, inaccessible, and duplicate file systems:

duf --all

To display help and usage:

duf --help

Output:

root@server:~# duf --all
╭────────────────────────────────────────────────────────────────────╮
│ 3 local devices                                                    │
├────────────┬────────┬────────┬────────┬────────┬──────┬────────────┤
│ MOUNTED ON │   SIZE │   USED │  AVAIL │  USE%  │ TYPE │ FILESYSTEM │
├────────────┼────────┼────────┼────────┼────────┼──────┼────────────┤
│ /          │  19.4G │   1.5G │  16.8G │   8.0% │ ext4 │ /dev/vda4  │
│ /boot      │ 447.1M │ 190.8M │ 227.9M │  42.7% │ ext4 │ /dev/vda2  │
│ /boot/efi  │ 919.7M │ 260.0K │ 855.8M │   0.0% │ ext4 │ /dev/vda1  │
╰────────────┴────────┴────────┴────────┴────────┴──────┴────────────╯
╭─────────────────────────────────────────────────────────────────────────╮
│ 23 special devices                                                      │
├──────────────┬────────┬────────┬────────┬────────┬────────┬─────────────┤
│ MOUNTED ON   │   SIZE │   USED │  AVAIL │  USE%  │ TYPE   │ FILESYSTEM  │
├──────────────┼────────┼────────┼────────┼────────┼────────┼─────────────┤
│ /dev         │   2.9G │     0B │   2.9G │        │ devtmp │ udev        │
│              │        │        │        │        │ fs     │             │
│ /dev/hugepag │     0B │     0B │     0B │        │ hugetl │ hugetlbfs   │
│ es           │        │        │        │        │ bfs    │             │
│ /dev/mqueue  │     0B │     0B │     0B │        │ mqueue │ mqueue      │
│ /dev/pts     │     0B │     0B │     0B │        │ devpts │ devpts      │
│ /dev/shm     │   2.9G │     0B │   2.9G │        │ tmpfs  │ tmpfs       │
│ /proc        │     0B │     0B │     0B │        │ proc   │ proc        │
│ /proc/sys/fs │     0B │     0B │     0B │        │ autofs │ systemd-1   │
│ /binfmt_misc │        │        │        │        │        │             │
│ /proc/sys/fs │     0B │     0B │     0B │        │ binfmt │ binfmt_misc │
│ /binfmt_misc │        │        │        │        │ _misc  │             │
│ /run         │ 593.2M │ 548.0K │ 592.6M │   0.1% │ tmpfs  │ tmpfs       │
│ /run/credent │   1.0M │     0B │   1.0M │        │ tmpfs  │ tmpfs       │
│ ials/getty@t │        │        │        │        │        │             │
│ ty1.service  │        │        │        │        │        │             │
│ /run/credent │   1.0M │     0B │   1.0M │        │ tmpfs  │ tmpfs       │
│ ials/systemd │        │        │        │        │        │             │
│ -journald.se │        │        │        │        │        │             │
│ rvice        │        │        │        │        │        │             │
│ /run/lock    │   5.0M │     0B │   5.0M │        │ tmpfs  │ tmpfs       │
│ /run/user/10 │ 593.2M │   8.0K │ 593.2M │   0.0% │ tmpfs  │ tmpfs       │
│ 00           │        │        │        │        │        │             │
│ /sys         │     0B │     0B │     0B │        │ sysfs  │ sysfs       │
│ /sys/fs/bpf  │     0B │     0B │     0B │        │ bpf    │ bpf         │
│ /sys/fs/cgro │     0B │     0B │     0B │        │ cgroup │ cgroup2     │
│ up           │        │        │        │        │ 2      │             │
│ /sys/fs/fuse │     0B │     0B │     0B │        │ fusect │ fusectl     │
│ /connections │        │        │        │        │ l      │             │
│ /sys/fs/psto │     0B │     0B │     0B │        │ pstore │ pstore      │
│ re           │        │        │        │        │        │             │
│ /sys/kernel/ │     0B │     0B │     0B │        │ config │ configfs    │
│ config       │        │        │        │        │ fs     │             │
│ /sys/kernel/ │     0B │     0B │     0B │        │ debugf │ debugfs     │
│ debug        │        │        │        │        │ s      │             │
│ /sys/kernel/ │     0B │     0B │     0B │        │ securi │ securityfs  │
│ security     │        │        │        │        │ tyfs   │             │
│ /sys/kernel/ │     0B │     0B │     0B │        │ tracef │ tracefs     │
│ tracing      │        │        │        │        │ s      │             │
│ /tmp         │   2.9G │     0B │   2.9G │        │ tmpfs  │ tmpfs       │
╰──────────────┴────────┴────────┴────────┴────────┴────────┴─────────────╯

Conclusion

You now have Duf installed on Debian 13.
Use it as a replacement for df to get detailed, color-coded, and more readable disk usage stats.


References


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS