fromdos command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
fromdos: command not found
or when using sudo you get the following error message
sudo: fromdos: command not found
Solutions to fromdos: command not found
How To Fix fromdos: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu fromdos is provided by tofrodos package.
tofrodos is:
DOS text files traditionally have CR/LF (carriage return/line feed) pairs as their new line delimiters while Unix text files traditionally have LFs (line feeds) to terminate each line.
Tofrodos comprises one program, “fromdos” alias “todos”, which converts text files to and from these formats. Use “fromdos” to convert DOS text files to the Unix format, and “todos” to convert Unix text files to the DOS format.
To fix this problem, we can install more using the command below.
sudo apt-get -y install tofrodos
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install tofrodos.
sudo apt -y install tofrodos
Or if you have aptitude installed you can use the following command.
sudo aptitude install tofrodos
Summary
In this tutorial we learn how to fix fromdos command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.