How to View Disk Usage Using duf Command line Tool

Duf is a free and open source disk usage command line application for Linux, BSD, macOS & Windows. It comes with colorful output, terminal theme, change the width, sort the output results, output the result in JSON, you can groups & filters devices and more. It is written in Go and released under MIT License.

duf

Download duf [Linux, BSD, macOS & Windows]

How to Install duf on Ubuntu

To install duf on your Ubuntu Linux system, run below command in the terminal application (ctrl+alt+t).

sudo apt install duf

Display Disk Usage Using duf

After the successful installation of duf, just run below command.

duf

You can sort and display the output by size, usage, used, mountpoint, avil, inodes,type and filesystem. The below command sort by size.

duf --sort size

Now using below command, you can display only mountpoint,size,usage. In this way you can hide and show specific columns.

duf --output mountpoint,size,usage

You can set the light theme using below command.

duf --theme light

For the complete usage details run below command.

man duf
If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Also Read:  Install Cinecred Film End Credits Maker Application on Linux

Leave a Reply