Quantcast
Channel: TechSpotting » fedora
Viewing all articles
Browse latest Browse all 6

Install bash mail command CentOS RHEL or Fedora

$
0
0

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

Technorati Tags: Bash, CentOS, Command Line, fedora, HowTo, Linux, Mail, RHEL


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles



Latest Images