ndiff command not found

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

Introduction

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

ndiff: command not found

or when using sudo you get the following error message

sudo: ndiff: command not found

Solutions to ndiff: command not found

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

In Ubuntu ndiff is provided by ndiff package.

ndiff is:

Ndiff is a tool to aid in the comparison of Nmap scans. It takes two Nmap XML output files and prints the differences between them them: hosts coming up and down, ports becoming open or closed, and things like that. It can produce output in human-readable text or machine-readable XML formats.

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

sudo apt-get -y install ndiff

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

You can also use apt command to install ndiff.

sudo apt -y install ndiff

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

sudo aptitude install ndiff

Summary

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