Duf - Disk Usage/Free Utility (Linux, BSD, macOS & Windows)


Disk Usage/Free Utility (Linux, BSD, macOS & Windows)


Features
  • User-friendly, colorful output
  • Adjusts to your terminal's width
  • Sort the results according to your needs
  • Groups & filters devices
  • Can conveniently output JSON

Installation

Packages

Linux
  • Arch Linux: duf
  • Nix: nix-env -iA nixpkgs.duf
  • Packages in Alpine, Debian & RPM formats

BSD
  • FreeBSD: pkg install duf

macOS
  • with Homebrew: brew install duf
  • with MacPorts: sudo port selfupdate && sudo port install duf

Windows
  • with scoop: scoop install duf

Android
  • Android (via termux): pkg install duf

Binaries
  • Binaries for Linux, FreeBSD, OpenBSD, macOS, Windows

From source

Make sure you have a working Go environment (Go 1.12 or higher is required). See the install instructions.

Compiling duf is easy, simply run:

git clone https://github.com/muesli/duf.gitcd dufgo build

Usage

You can simply start duf without any command-line arguments:

duf

If you supply arguments, duf will only list specific devices & mount points:

duf /home /some/file

If you want to list everything (including pseudo, duplicate, inaccessible file systems):

duf --all

You can show and hide specific tables:

duf --only local,network,fuse,special,loops,bindsduf --hide local,network,fuse,special,loops,binds

You can also show and hide specific filesystems:

duf --only-fs tmpfs,vfatduf --hide-fs tmpfs,vfat

Sort the output:

duf --sort size

Valid 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,usage

Valid keys are: mountpoint, size, used, avail, usage, inodes, inodes_used, inodes_avail, inodes_usage, type, filesystem.

List inode information instead of block usage:

duf --inodes

If duf doesn't detect your terminal's colors correctly, you can set a theme:

duf --theme light

If you prefer your output as JSON:

duf --json

Troubleshooting

Users 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 duf



Via: feedproxy.google.com
Duf - Disk Usage/Free Utility (Linux, BSD, macOS & Windows) Duf - Disk Usage/Free Utility (Linux, BSD, macOS & Windows) Reviewed by Anónimo on 8:40 Rating: 5