How to install the bash mail command on CentOS, RHEL or Fedora, this is handy for sending mail from the command line:
cat /some/file | mail youraddress@yourdomain.com
If you don’t have the mail command installed you will get the following error:
-bash: mail: command not found
Install mail command CentOS
To install the bash mail program on CentOS, RHEL or Fedora type the following:
yum install mailx
***note on RHEL system you will require a Redhat Network (RHN) Self-Support contract to apply updates via YUM.
Any questions drop me a comment and don’t forget to follow TechSpotting on Twitter and subscribe via FeedBurner