50 likes | 179 Views
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.
E N D
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
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
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