cdiff command not found

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

Introduction

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

cdiff: command not found

or when using sudo you get the following error message

sudo: cdiff: command not found

Solutions to cdiff: command not found

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

In Ubuntu cdiff is provided by colordiff package.

colordiff is:

ColorDiff is a wrapper for the ‘diff’ command. It produces the same output as diff, but with colored highlighting to improve readability. The color schemes can be customized.

The output is similar to the syntax-highlighting mode of Vim or Emacs when editing a patch created by diff.

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

sudo apt-get -y install colordiff

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

You can also use apt command to install colordiff.

sudo apt -y install colordiff

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

sudo aptitude install colordiff

Summary

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