MrTechKing

4 min read

duf: See Your Free Disk Space at a Glance (GitHub, Scanned)

A free disk space checker for the terminal: duf shows every drive's size, used and free space in colour-coded tables.

duf logo
✅
Scan: safe. Nothing to warn about. No secrets or suspicious code, and it never goes online. Scanned Dec 5, 2026; the full report is below.

duf is a free command-line tool that shows how much disk space you have, as a friendlier replacement for the old df command. Install it, type duf and you get tidy tables of every drive and mount: its size, how much is used, how much is free and a usage bar that turns yellow or red as it fills up. Local disks, network shares and special file systems sit in separate tables, so the one you care about is easy to find.

It earns its place because df prints a wall of numbers that is hard to read at a glance. duf fits its output to your terminal's width and colours, sorts by any column (duf --sort size), shows only the drives or mount points you name (duf /home), hides the noisy system ones, lists inode use with --inodes and prints JSON with --json for scripts. You can set your own warning levels for when a drive counts as nearly full.

duf is MIT licensed and written in Go by Christian Muehlhaeuser (muesli), who also works on Charm's terminal tools. It has about 15,400 stars and 39 contributors. The latest release, 0.9.1, came out on 8 September 2025, and the code was still being updated in November 2026.

  • Repository: github.com/muesli/duf
  • Licence: custom (Other)
  • Language: Go. Stars: 15.4K. Forks: 484. Last push: Nov 15, 2026.
  • Scan: safe, Dec 5, 2026, commit d85105b

Who it is for

Developers and system administrators who check disk space on servers, people who like a tidy terminal, and anyone who finds df hard to read. You need to be comfortable typing a command; it runs on macOS, Linux, Windows, the BSDs and Android through Termux.

Getting started

1. macOS or Linux with Homebrew

brew install duf

2. Or Ubuntu 22.04+ and Debian 12+

sudo apt install duf

3. Or Windows

scoop install duf

4. Show every drive and how full it is

duf

5. Show one folder's drive, sorted by size

duf --sort size /home

Package managers install the duf program and change nothing else. If you use Oh My Zsh, it already has an alias called duf, so run unalias duf first or the alias runs instead. Our scan covers the source code, not the prebuilt binaries or packages.

Safety scan

We cloned muesli/duf at commit d85105b on Dec 5, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.

  • 0 secret hits and no committed binaries across 36 files and about 3,500 lines, almost all Go.
  • 0 pattern hits. There are no install hooks, build scripts or post-install steps; it is a plain Go program that reads your system's mount list.
  • No install script of its own. It ships through Homebrew, MacPorts, Scoop, Chocolatey, Termux and the Linux and BSD package managers, plus signed checksums for the release downloads.
  • 3 advisories across 16 Go modules in go.mod, none rated. One is in golang.org/x/sys, in a Windows text helper; two are in golang.org/x/text, about crafted input making a parser loop or crash. duf only reads your own system's drive list, so a crafted file never reaches it.
  • duf makes no network connections and has no telemetry; the only web addresses in the code are doc links in comments and the man page. 5 workflows, none on pull_request_target; 0 of 4 third-party actions are pinned to a commit. Dependabot is on; no security policy or CodeQL; its OpenSSF Scorecard is 4.1 out of 10.

What the scanner counted

CheckResult
SecretsNone found.
Suspicious codeNone found.
Install-time codeNone: nothing runs at install beyond the package manager itself.
Committed binariesNone.
CI workflows5 workflows. None use pull_request_target. 4 of 4 third-party actions pinned to a tag rather than a commit.
Network hosts2 distinct hosts referenced from source; most often docs.microsoft.com, github.com. No URLs to bare IP addresses.
Known vulnerabilities3 advisories across 16 pinned packages: 0 critical, 0 high, 0 moderate, 0 low, 3 unrated. go.mod: 16 packages, 3 advisories.
Project hygieneHas automated dependency updates, licence file. Missing security policy, CodeQL, contributing guide.
OpenSSF Scorecard4.1 out of 10, as of Nov 23, 2026.

The raw findings

Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.

Worst known vulnerabilities (3 of 3)
AdvisorySeverityPackageSummary
CVE-2026-39824unknowngolang.org/x/sys@0.35.0Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows
CVE-2026-56852unknowngolang.org/x/text@0.22.0Infinite loop on invalid input in golang.org/x/text
CVE-2026-56851unknowngolang.org/x/text@0.22.0Panic parsing crafted input in x/text/secure/precis in golang.org/x/text

By the numbers

Stars15.4K
Forks484
Contributors39
Commits287
Open issues55
Open pull requests41
Releases14
Latest releasev0.9.1
Licencecustom
Main languageGo
Project age6 years
Last pushNov 15, 2026
Tracked files36
Lines of code3,455
Checkout size231 KB

Lines by language: Go 2,979, YAML 326, Markdown 150.

Questions

Is duf free?

Yes. It is free and open source under the MIT licence, with no account and no paid version.

duf or df?

duf if you want to read disk space at a glance, with colours, separate tables and sorting. df if you need the standard tool that is already on every Unix system and that old scripts expect.

Does duf work on Windows?

Yes. Install it with Scoop or Chocolatey and run it in Windows Terminal or PowerShell; it lists your local and network drives.

Why does duf do nothing in my Oh My Zsh terminal?

Oh My Zsh defines its own duf alias, which runs instead. Type unalias duf, or remove the alias from your setup, and the real duf runs.

How do I uninstall duf?

Use the package manager you installed it with, for example brew uninstall duf, sudo apt remove duf or scoop uninstall duf. It keeps no settings files.


This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.