finddup command not found

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

Introduction

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

finddup: command not found

or when using sudo you get the following error message

sudo: finddup: command not found

Solutions to finddup: command not found

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

In Ubuntu finddup is provided by perforate package.

perforate is:

GNU cp used to detect files that contain 0-filled holes and save disk space by skipping them with lseek when writing a file and thus not allocating disk blocks. Unfortunately it does no longer. So here is program to make holes in existing files.

Also there are some scripts that help cleaning up the hard disk (finding duplicated and/or unstripped files).

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

sudo apt-get -y install perforate

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

You can also use apt command to install perforate.

sudo apt -y install perforate

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

sudo aptitude install perforate

Summary

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