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.

Share on facebook
Share on twitter
Share on linkedin
Share on reddit

FREE SERVER AUDITING

Get Auditing Report of Your Server for FREE!!

GET THIS ISSUE FIXED !!

$30/month

Server Management