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.comIf you don’t have the mail command installed you will get the following error:
$ -bash: mail: command not foundTo install the bash mail program on CentOS, RHEL or Fedora type the following:
$ yum install mailxNote on RHEL system you will require a Redhat Network (RHN) Self-Support contract to apply updates via YUM.
That's All and now Enjoy the Bash Mail Command on your CentOS / RHEL / Fedora Desktops!!!


