admin/ July 9, 2016/ Linux/ 0 comments

If mail command not found ?

You can install the mail package in Ubuntu with below command.

For Ubuntu -:

$ sudo apt-get install -y mailutils

For CentOs-:

$ sudo yum install -y mailx

Test Mail command-:

$ echo "Mail test" | mail -s "Subject" [email protected]
Share this Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.