Skip to content

duf

Terminal disk usage and free-space viewer for Linux, BSD, macOS and Windows users

Permissive (OSI) · MIT
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

62

Health

Active

Overview

Stars

15,401

Last commit

9 days ago

Nov 2026

Repository age

6 years

since Sep 2020

Latest version

v0.9.1

Sep 2025

Contributors

–

4 active in 90 days

Releases

0

last 12 months

Language

Go

duf is a small command-line tool that shows disk usage and free space for your mounted devices. It is written in Go and acts as a more readable take on the classic df command. Output is colorful, fits your terminal width and adapts to your terminal theme.

You can sort by columns such as size, used, avail, usage, inodes or filesystem type. You can group devices into tables like local, network, fuse, special, loops and binds, and show or hide whole groups, specific filesystems or mount points. Wildcards work in mount point filters. Color thresholds for availability and usage are adjustable, and you can list inode data instead of block usage. For scripts, it can print JSON.

duf runs on Linux, BSD, macOS and Windows, and is packaged for many distributions, Homebrew, MacPorts, Chocolatey, Scoop and Termux. It is MIT licensed. It replaces no specific commercial product, but it covers the same need as disk-info utilities bundled with other systems.

Who it's for

Linux and BSD users who find df output hard to read

It groups devices and colors usage so you spot full disks fast.

Skip if: You need to see which folders use the space; a directory-level analyzer fits better.

Scripters who need disk stats as data

The JSON output is easy to parse in shell scripts and monitoring jobs.

Skip if: You need historical graphs or alerts from a monitoring system.

The problem it solves

The standard df output is dense and lists many pseudo filesystems you rarely care about. duf gives you a clean, sorted, filterable view of real disks.

Strengths

  • Available through apt, dnf, pacman, Homebrew, Chocolatey, Scoop and more
  • Filters by table, filesystem type or mount point, with wildcards
  • Sorts by 11 keys, including inode columns
  • JSON output with a single flag

Trade-offs

  • Shows device-level usage only, not per-folder space
  • No tagged releases in the last year
  • Building from source needs Go 1.23 or newer

Frequently asked questions

Is duf free?

Yes. It is MIT licensed.

Which platforms does it support?

Linux, FreeBSD, OpenBSD, macOS and Windows, plus Android through Termux.

Can I get JSON output?

Yes. Run duf --json.

Why does the duf command not work in oh-my-zsh?

oh-my-zsh defines an alias named duf. Run unalias duf to remove it.

Similar tools in System cleaners and maintenance tools

Mole

System cleaners and maintenance tools

Mac cleanup tool for clearing caches, removing apps and checking disk space

76k 2.7k today Thriving GPL-3.0

Raspberry Pi Imager

System cleaners and maintenance tools

Official Raspberry Pi tool for writing OS images to SD cards and USB drives

2.7k 467 19 days ago Active Apache-2.0

fwupd

System cleaners and maintenance tools

Linux daemon and CLI that installs firmware updates for laptops and peripherals

4.2k 659 today Thriving LGPL-2.1

BleachBit

System cleaners and maintenance tools

Disk cleaner and privacy tool for Windows and Linux users who want file shredding

7.6k 491 4 days ago Thriving GPL-3.0

Replaces Ccleaner

Bulk-Crap-Uninstaller

System cleaners and maintenance tools

Windows uninstaller that removes many apps in one pass and cleans up leftovers

23k 990 3 months ago Slowing Apache-2.0