xxdiff command not found

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

Introduction

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

xxdiff: command not found

or when using sudo you get the following error message

sudo: xxdiff: command not found

Solutions to xxdiff: command not found

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

In Ubuntu xxdiff is provided by xxdiff package.

xxdiff is:

xxdiff is a powerful tool for viewing the differences between two or three files, or two directories, and can be used to produce a merged version. The texts of the two or three files are presented side by side with their differences highlighted with colors for easy identification. Among its features are:

  • Compares two or three files, or two directories (shallow and recursive)
  • Horizontal highlighting of diffs
  • Interactive merges, previewing and saving of the resulting output
  • Unmerges CVS conflicts and displays two files, to help resolve conflicts
  • Fully customizable with a resource file
  • Features and output that ease integration with scripts

The scripts that accompany xxdiff can be found in the xxdiff-scripts package.

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

sudo apt-get -y install xxdiff

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

You can also use apt command to install xxdiff.

sudo apt -y install xxdiff

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

sudo aptitude install xxdiff

Summary

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