mh command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mh: command not found
or when using sudo you get the following error message
sudo: mh: command not found
Solutions to mh: command not found
How To Fix mh: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mh is provided by mmh package.
mmh is:
This is the mmh mail user agent (reader/sender), a command-line based mail reader that is powerful and extensible. mmh is an excellent choice for people who receive and process a lot of mail.
Unlike most mail user agents, mmh is not a single program, rather it is a set of programs that are run from the shell. This allows the user to utilize the full power of the Unix shell in coordination with mmh.
Mmh is a modified version of the electronic mail handling system nmh. Nmh (new MH) itself was originally based on the package MH-6.8.3, and was intended to be a (mostly) compatible drop-in replacement for MH. In contrast, mmh is not intended to be a drop-in replacement for nmh, rather mmh breaks compatibility to nmh in order to modernize and simplify it.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mmh
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mmh.
sudo apt -y install mmh
Or if you have aptitude installed you can use the following command.
sudo aptitude install mmh
Summary
In this tutorial we learn how to fix mh command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.