Skip to content
forked from muesli/duf

Disk Usage/Free Utility - a better 'df' alternative

License

Notifications You must be signed in to change notification settings

tabulon-ext/duf

This branch is 95 commits behind muesli/duf:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 25, 2021
673a3d1 · Oct 25, 2021
Mar 28, 2021
Sep 21, 2020
Mar 26, 2021
Mar 26, 2021
Mar 26, 2021
Oct 25, 2021
Apr 6, 2021
Oct 10, 2020
Nov 2, 2020
Nov 1, 2020
Nov 1, 2020
Mar 27, 2021
Nov 1, 2020
Nov 1, 2020
Jul 4, 2021
Jul 4, 2021
Apr 21, 2021
Apr 21, 2021
Apr 21, 2021
Apr 21, 2021
Apr 21, 2021
Mar 27, 2021
Apr 21, 2021
Nov 18, 2020
Mar 22, 2021
Nov 1, 2020
Oct 6, 2020

Repository files navigation

duf

Latest Release Build Status Go ReportCard GoDoc

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

duf

Features

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

Installation

Packages

Linux

  • Arch Linux: pacman -S duf
  • Nix: nix-env -iA nixpkgs.duf
  • Void Linux: xbps-install -S duf
  • Snap: sudo snap install duf-utility (snapcraft.io)
  • 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

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.git
cd duf
go 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

Filtering

You can show and hide specific tables:

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

You 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,/dev

Wildcards inside quotes work:

duf --only-mp '/sys/*,/dev/*'

Display options

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

Bonus

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

About

Disk Usage/Free Utility - a better 'df' alternative

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 94.1%
  • Roff 5.9%