di command not found

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

Introduction

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

di: command not found

or when using sudo you get the following error message

sudo: di: command not found

Solutions to di: command not found

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

In Ubuntu di is provided by di package.

di is:

di' is a disk information utility, displaying everything (and more) that your df’ command does. It features the ability to display your disk usage in whatever format you desire/prefer/are used to. It is designed to be portable across many platforms.

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

sudo apt-get -y install di

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

You can also use apt command to install di.

sudo apt -y install di

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

sudo aptitude install di

Summary

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