Debian/Ubuntu Linux: bash: mail: command not found – Solution

Symptoms:

Unable to run mail command from a command line:

# mail test
bash: mail: command not found

Solution:

Your Linux system is missing a mailutils package. The GNU mailutils package contains various utilities for handling mail. Run the following linux command to install mailutils package:

# apt-get install mailutils