duc command not found

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

Introduction

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

duc: command not found

or when using sudo you get the following error message

sudo: duc: command not found

Solutions to duc: command not found

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

In Ubuntu duc is provided by duc package.

duc is:

Duc maintains a database of accumulated sizes of directories of the file system, and allows you to query this database with some tools, or create fancy graphs showing you where your bytes are.

Duc comes with console utilities, ncursesw and X11 user interfaces and a CGI wrapper for disk usage querying and visualisation.

Duc is designed to scale to huge filesystems: it will index and display hundreds of millions of files on petabytes of storage without problems.

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

sudo apt-get -y install duc

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

You can also use apt command to install duc.

sudo apt -y install duc

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

sudo aptitude install duc

Summary

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