Limits
Outcome: you know where duf's answers stop — the questions it cannot speak to, and the ways its presentation can lead a careful reader astray. Every tool in this series gets this chapter; duf's list is mostly the shadow of its strengths.
Filesystems, never files
Duf's world ends at the mount point. It can say a filesystem is 98% full; it cannot name a single file or folder responsible. The step from "this disk is full" to "this folder is why" belongs to dust and ncdu (chapter 12), and no flag in duf crosses it.
The default view is an edit
The tidy filter (chapter 2) drops
mounts duf classes as pseudo,
duplicate or inaccessible — with no
announcement of what was dropped.
On a typical desktop the dropped
rows are plumbing. On the lab
machine the dropped rows included
the root filesystem itself: duf's
default table, asked about /,
answered with silence and success.
--all and --json always show
the whole list; the default table
is a view, and treating it as the
inventory is the tool's main trap.
Numbers with presentation in them
Sizes are rounded to one decimal; the percentage is used ÷ size, not df's used ÷ (used + avail) rounded up. Neither is wrong, but a duf percentage and a df percentage are not the same statistic, and inode percentages read 0.0% on filesystems — btrfs the lab's example — where inode supply is not fixed and the honest answer is "not applicable". Df prints a dash there; duf prints a number-shaped nothing.
One snapshot, no memory
Duf has no history, no daemon, no alerts, no thresholds that act — its colour thresholds only paint. It cannot answer "is this disk filling faster than last month?" or watch anything while you sleep. Scripts built on its JSON (chapter 11) can; duf itself does not.
Ascending only
Sorting runs smallest/emptiest
first, with no reverse flag in
0.9.1. The fullest rows are at the
bottom of their table unless you
pipe through tail or move to the
JSON and sort there. A small thing,
and a daily one.
Appearance depends on the terminal
Colours are chosen after asking the terminal about itself; where that conversation fails — captured output, dumb terminals, some pipelines — the colour layer can collapse while the table remains. The bar is dropped entirely when the table is squeezed. What duf shows on your screen is not guaranteed to be what it showed on anyone else's, which is why this guide's claims rest on the numbers and the JSON, not the paintwork.