BLACK FRIDAY SALE IS LIVE !!!!!

Need Assistance?

In only two hours, with an average response time of 15 minutes, our expert will have your problem sorted out.

Server Trouble?

For a single, all-inclusive fee, we guarantee the continuous reliability, safety, and blazing speed of your servers.

duf – Disk usage/ free utility for linux, BSD, macOS & windows

     

The duf command is used to the how much disk space is available on the mounted file system, i.e in Linux, macOS, Windows and Unix-like systems.

This blog helps you to install duf (duf  – Disk usage/ free utility for Linux BSD,macOS & windows). You can refer our server management plan for further details.

Features:

It is easy to use

Colourful output

Adjust to your terminal’s width

Sort the results as per our needs

Filters and groups

Can conveniently output JSON

Installation

Package

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

Ensure that you have a working Go environment(Go 1.12 or higher is required).follow the instructions below.

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

Usage

Now you can simply start the duf without any command-line arguments.

duf

If you proviso arguments, duf will only list specific devices and mount points.

duf/home/some/file

If you want to transfer all list that includes the pseudo, duplicate, inaccessible file system.

duf - -all

Now you can also hide and show the specific tables:

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

 you can also hide and show the specific tables:

duf --only-fs tmpfs,vfat
duf --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.

Hide or show particular 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 accusation instead of block usage:

duf --inodes

If the duf doesn’t trace your terminal’s colours correctly, you can set a theme:

duf --theme light

If you prefer output as JSON

duf --json

Troubleshooting

Users of oh-my-zsh should be aware that it already defines an alias called duf, which you volition person to region successful in order to use duf:

unalias duf

Conclusion:

In short, duf is a command-line utility that suitable for personal Linux desktop, macOS or for the development server. You can take our technical support team for further troubleshooting and installation.

Liked!! Share the post.

Get Support right now!

Start server management with our 24x7 monitoring and active support team

Can't get what you are looking for?

Available 24x7 for emergency support.