Disk Usage/Free Utility - a better 'df' alternative
Disk Usage/Free Utility (Linux, BSD, macOS & Windows)
pacman -S dufapt install dufdnf install dufnix-env -iA nixpkgs.dufxbps-install -S dufemerge sys-fs/dufeopkg it dufpkg install dufpkg_add dufchoco install dufscoop install dufpkg install dufMake sure you have a working Go environment (Go 1.23 or higher is required). See the install instructions.
Compiling duf is easy, simply run:
git clone https://github.com/muesli/duf.git
cd duf
go buildYou can simply start duf without any command-line arguments:
dufIf you supply arguments, duf will only list specific devices & mount points:
duf /home /some/fileIf you want to list everything (including pseudo, duplicate, inaccessible file systems):
duf --allYou can show and hide specific tables:
duf --only local,network,fuse,special,loops,binds
duf --hide local,network,fuse,special,loops,bindsYou can also show and hide specific filesystems:
duf --only-fs tmpfs,vfat
duf --hide-fs tmpfs,vfat...or specific mount points:
duf --only-mp /,/home,/dev
duf --hide-mp /,/home,/devWildcards inside quotes work:
duf --only-mp '/sys/*,/dev/*'Sort the output:
duf --sort sizeValid keys are: mountpoint, size, used, avail, usage, inodes,
inodes_used, inodes_avail, inodes_usage, type, filesystem.
Show or hide specific columns:
duf --output mountpoint,size,usageValid keys are: mountpoint, size, used, avail, usage, inodes,
inodes_used, inodes_avail, inodes_usage, type, filesystem.
List inode information instead of block usage:
duf --inodesIf duf doesn't detect your terminal's colors correctly, you can set a theme:
duf --theme lightduf highlights the availability & usage columns in red, green, or yellow, depending on how much space is still available. You can set your own thresholds:
duf --avail-threshold="10G,1G"
duf --usage-threshold="0.5,0.9"If you prefer your output as JSON:
duf --jsonUsers of oh-my-zsh should be aware that it already defines an alias called
duf, which you will have to remove in order to use duf:
unalias dufGot some feedback or suggestions? Please open an issue or drop me a note!
Windows: verbatim paths (\\?\...) silently return empty output
Feature request: Option to omit the graph in USE%
package now available for QNAP NAS
The output of the new DUF version is not aesthetically pleasing
Group btrfs subvolume mounts
`^[[;;m` as well as `^[[0m` are printed when NO_COLOR is set AND with piped → `cat` output
is used persent calculation wrong?
recognize duplicate filesystem entries
[feature][ZFS] Snapshots ought to be ignored (or hidable)
Adding a new style to --style