file command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
file: command not found
or when using sudo you get the following error message
sudo: file: command not found
Solutions to file: command not found
How To Fix file: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu file is provided by file package.
file is:
The file command is “a file type guesser”, a command-line tool that tells you in words what kind of data a file contains.
This package contains the file program itself.
To fix this problem, we can install more using the command below.
sudo apt-get -y install file
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install file.
sudo apt -y install file
Or if you have aptitude installed you can use the following command.
sudo aptitude install file
Summary
In this tutorial we learn how to fix file command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.