1 / 4

Understanding Mail Program Behavior in UNIX: Commands and Navigation

The UNIX mail program, when invoked without arguments, accesses the user's system mailbox located at /var/spool/mail/$LOGNAME and prompts for mail commands. To exit the input mode, use Ctrl-D, while x or q allows you to exit command mode. Additionally, quitting with q saves all read messages into a file called 'mbox'. For saving messages to another mailbox, use the smailbox command, and to read mail from your personal mailbox, utilize mail -f mbox. This guide provides essential commands and navigation tips for efficient mail management in UNIX.

washi
Download Presentation

Understanding Mail Program Behavior in UNIX: Commands and Navigation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UNIX Files &Electronic Mail

  2. What is the behavior of the mail program when invoked with no arguments? The mail program will read your system mailbox /var/spool/mail/$LOGNAMEand prompt you (&) to enter mail commands

  3. How do you get out of the input mode of mail?How do you get out of mail’s command mode? • Ctrl-D or . gets you out of input mode • x or q will get you out of mail

  4. How do you save mail into, and read mail from, your own personal mbox? • Quitting a mail session with q will save all read messages to a file called mbox • Or, you can save messages to another mailbox using the smailbox command. • mail -f mbox

More Related