install mail command linux
TRANSCRIPT
![Page 1: Install mail Command Linux](https://reader036.vdocument.in/reader036/viewer/2022073102/55cde1c2bb61ebf96b8b488d/html5/thumbnails/1.jpg)
Install Mail Command – CentOS 7
Overview
Minimal install on most Linux operating system, mail command doesn’t work, it is necessary to install mail packages.
Applies To
CentOS 7, RHEL 7.x
Install package
yum install -y mailx
![Page 2: Install mail Command Linux](https://reader036.vdocument.in/reader036/viewer/2022073102/55cde1c2bb61ebf96b8b488d/html5/thumbnails/2.jpg)
Install Mail Command – CentOS 7
Test Sending Email
echo "Test E-Mail" | mail -s "Test Mail" [email protected]
Verify Email Sent
tail /var/log/maillog