I was surprised to find that the mail command doesn’t work out of the box in Fedora, nor in the minimal installation of CentOS 7. Thankfully there’s an easy way to add it by installing the mailx package.
yum install mailx
That’s not the full story on how to send email from the command line of course, nor is it the only possible way to do so. I might elaborate on these details in a future article. I just wanted to make a note to remind myself of the package name that I keep forgetting.