O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

mail

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required