whiff command not found

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

Introduction

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

whiff: command not found

or when using sudo you get the following error message

sudo: whiff: command not found

Solutions to whiff: command not found

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

In Ubuntu whiff is provided by whiff package.

whiff is:

whiff command, which takes a number of command names and returns the first one that exists and is executable.

It assumes that all the arguments form a best-first list of alternatives, and only prints the path to the first alternative found in the path. If none is found, it prints an error (to stderr) and exits with an error code.

A programmer interface is available in the App::Whiff module.

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

sudo apt-get -y install whiff

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

You can also use apt command to install whiff.

sudo apt -y install whiff

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

sudo aptitude install whiff

Summary

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