The command mail is usually provided by the mailx package.
License : BSD with advertising and MPLv1.1 Description : Mailx is
an enhanced mail command, which provides the functionality
: of the POSIX mailx command, as well as SysV mail and Berkeley Mail
: (from which it is derived).
The command
mail
is usually provided by themailx
package.In case you're using Ubuntu:
sudo apt-get install mailutils
If you are using Red Hat / CentOS:
sudo yum -y install mailx