holes command not found

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

Introduction

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

holes: command not found

or when using sudo you get the following error message

sudo: holes: command not found

Solutions to holes: command not found

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

In Ubuntu holes is provided by holes package.

holes is:

holes looks for runs of zero bytes (a.k.a. holes) in the specified input files (or the standard input), and prints the start addresses (in hexadecimal) as well as the lengths (in decimal). When multiple input files are specified, holes prefixes each line with the file name.

It can be used with fallocate(1), truncate(1), or virt-sparsify(1).

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

sudo apt-get -y install holes

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

You can also use apt command to install holes.

sudo apt -y install holes

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

sudo aptitude install holes

Summary

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