foremost command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
foremost: command not found
or when using sudo you get the following error message
sudo: foremost: command not found
Solutions to foremost: command not found
How To Fix foremost: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu foremost is provided by foremost package.
foremost is:
Foremost is a forensic program to recover lost files based on their headers, footers, and internal data structures.
Foremost can work on image files, such as those generated by dd, Safeback, Encase, etc, or directly on a drive. The headers and footers can be specified by a configuration file or you can use command line switches to specify built-in file types. These built-in types look at the data structures of a given file format allowing for a more reliable and faster recovery.
To fix this problem, we can install more using the command below.
sudo apt-get -y install foremost
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install foremost.
sudo apt -y install foremost
Or if you have aptitude installed you can use the following command.
sudo aptitude install foremost
Summary
In this tutorial we learn how to fix foremost command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.