duf
A command-line utility that shows disk usage and free space of mounted filesystems with colorful, sortable and filterable output.
Tested on Linux
Use it
Linux x86_64
You need first
- Runtimes:
go>=1.23 (to build from source)
Download the v0.9.1 linux_x86_64 release tarball, extract it and install duf into ~/.local/bin
mkdir -p /tmp/duf ~/.local/bin && curl -fsSL -o /tmp/duf/duf.tar.gz https://github.com/muesli/duf/releases/download/v0.9.1/duf_0.9.1_linux_x86_64.tar.gz && tar -xzf /tmp/duf/duf.tar.gz -C /tmp/duf && install -m 755 /tmp/duf/duf ~/.local/bin/duf
Check that it works
duf --versionThe output should contain “duf 0.9.1”.
First thing to try
dufRun duf to see a table of all mounted filesystems with their size, usage and free space.
What it does
- Show disk usage in colored tablesTested
How to use it
- Run
dufto list each mount point with size, used, available space, use percent, type and filesystem.
- Run
- Sort results by a chosen columnTested
How to use it
- Run
duf --sort sizeto order the table by size.
- Run
- Group and filter devicesTested
How to use it
- Run
dufto see devices grouped in tables. - Run
duf --only-fs <filesystem type>to show only filesystems of that type, such as tmpfs.
- Run
- Output disk usage as JSONTested
How to use it
- Run
duf --jsonto print disk usage data as JSON, with fields such as mount_point.
- Run
How far pickfit got
Linux x86_64
- Installs
- Starts
- 4 of 4 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- check free disk space on all mounted devices
- show usage for specific mount points
- list inode usage instead of block usage
- export disk usage data as JSON
An alternative to df.
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 15 Nov 2026
- Version duf 0.9.1 (b2f01a1ecbfd1af63015b83296c50a95260f97b1)
Differences the test machine hit
- README: From source: git clone + go build (Go 1.23+); or use the distro packages (apt/pacman/dnf/nix)
In the test: No Go toolchain and no root in this box, so I installed the prebuilt release binary the README links to (duf_0.9.1_linux_x86_64.tar.gz) into ~/.local/bin - README: User-friendly, colorful output
In the test: When stdout is not a terminal, the tables print without color codes, so color could not be seen in captured output