The Neighbours
Outcome: you can place duf among the tools that surround it — above all, you stop asking it the one question it cannot answer. Only df was run alongside duf in this guide's lab; the rest are characterised honestly, from their own documentation and this series' guides to them.
df — the original
df asks the same question through
the same system call and has been
on every Unix since before most of
its users were born. It is already
installed on your machine, it is
POSIX-standardised, its output
format is what fifty years of
scripts expect, and in byte terms
this guide proved it and duf
identical. What df does not do:
group the mounts, sort them, give a
decimal place, colour anything, or
speak JSON. If you administer
machines you cannot install
software on, df (with -h for
humans and -i for inodes) is
still the whole toolkit — duf is a
better seat, not a different
vehicle.
dust and ncdu — the other question
"What ate my disk?" is not "how full is the disk?" Dust walks a folder tree and draws where the space went, biggest branches first. Ncdu does the same as an interactive explorer you can browse, biggest first, deleting from inside it. Neither knows or cares where one filesystem ends and the next begins; duf knows nothing else. The tools are complements, not rivals: duf tells you which filesystem is full, dust or ncdu tells you what on it is full. This series has a guide to each — Dust for Mere Mortals and Ncdu for Mere Mortals — and they are the natural next read when duf's table names a filesystem at 98%.
du, lsblk and friends
du is the old tree-walker dust
improves on: still universal, still
the fallback on a strange machine.
lsblk -f answers a neighbouring
question — which disks and
partitions exist and what is on
them — whether or not they are
mounted; duf only sees what is
mounted. A machine's storage story
needs both shapes of answer at
different moments.
The monitors
btop, and the watching tools of this series' Watching Your System guide, show filesystems as one panel of a living display — processor, memory, network, disks together, updating. If the question is "what is the machine doing?", that is the genre. Duf's snapshot is sharper on its one subject and still the moment you close it; nothing about it watches, records, or alerts.