duf command not found

In this troubleshooting guide we learn how to fix duf command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

duf: command not found

or when using sudo you get the following error message

sudo: duf: command not found

Solutions to duf: command not found

How To Fix duf: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu duf is provided by duf package.

duf is:

Simple Disk Usage/Free Utility.

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.

To fix this problem, we can install more using the command below.

sudo apt-get -y install duf

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install duf.

sudo apt -y install duf

Or if you have aptitude installed you can use the following command.

sudo aptitude install duf

Summary

In this tutorial we learn how to fix duf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.