No, it is no Duff beer if that rings a bell. Today, we are talking about Duf disk utility, an open-source, free “Disk Usage Free Utility” written in Goland and released under MIT license. The disk utility supports multi-platforms such as BSD, Linux, macOS, and Windows operating systems.
Duf is a command-line utility to find disk usage in Linux and Unix-like systems terminals. One of the excellent features of Duf is its ability to display the disk usage details in a beautiful, user-friendly layout in tab form. Some extra features with Duf include disk usage out in JSON output.
IIn the following tutorial, you will learn how to install Ubuntu 20.04 LTS Focal Fossa.
Table of Contents
- Recommended OS: Ubuntu 20.04 or higher
- User account: A user account with sudo or root access.
Updating Operating System
Update your Ubuntu operating system to make sure all existing packages are up to date:
sudo apt update && sudo apt upgrade
Root or Sudo Access
By default, the account created with Ubuntu was giving sudo status. Still, suppose you need to provide additional accounts sudo/root access. In that case, you must either have access to the root password to use the su command or visit our tutorial on How to Add a User to Sudoers on Ubuntu.
Install Duf with .deb
Duf does not come in Ubuntu 20.04’s default repository, so you must download the .deb package from the project’s GitHub releases page. Once you get the latest link, open your terminal and download the package.
Next, install Duf Disk Usage Utility with the following command:
sudo dpkg -i duf_0.6.2_linux_amd64.deb
Selecting previously unselected package duf. (Reading database ... 229993 files and directories currently installed.) Preparing to unpack duf_0.6.2_linux_amd64.deb ... Unpacking duf (0.6.2) ... Setting up duf (0.6.2) ...
Install Duf with Snap Package
An alternative installation method for Ubuntu users is installing Duf with the Snap package manager installed on your system.
To install Duf Disk Utility with Snap, run the following command:
sudo snap install duf-utility
duf-utility v0.6.0 from muesli installed
How to Launch & Use Duf
Now that you have installed Duf Disk Utility, you can launch the application. To access the display, use the following command in your terminal:
Alternatively, if you would like to display all system files, including those that are duplicates, pseudo, and hidden, using the following command:
Duf can also have the ability to scale down and sort out specifics of what you would like to see and or check on with keywords. The example format syntax would be:
An example of using keywords would be options such as mountpoint, size, and usage. You can use all three together or individually. Any combination is possible.
Example of mountpoint, size, and usage:
duf --output mountpoint,size,usage
For customization, you can change the color from light to dark them and vice versa.
Activate light theme:
duf --theme light
Activate dark theme:
duf --theme dark
To access the help menu to find out more information about a command or find more information in general, use the following command.
Comments and Conclusion
Duf is a simple program to monitor disk utility. It’s lightweight and is under constant development with reviewing its GitHub commits. Bugs are quickly sorted and favorite among many who want a light program to see disk usage, especially on server environments.