Sends and receives electronic mail
mail [-s subject] user-list
mail -f [filename]
The mail utility sends and receives electronic mail in a text environment. Although there are many newer MUAs (mail user agents), mail remains useful in specific situations, especially for a system administrator.
When you use mail to send someone a message, the system puts the message in that user's mailbox, typically /var/spool/mail/login-name, where login-name is the login name of the user you are sending the message to. When you use mail to read messages, mail normally reads from your mailbox and stores the messages you have read in ~/mbox.
The way mail appears and functions depends to a large extent on the mail environment. When you call mail, it establishes ...
Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.