Turn: http://blog.csdn.net/tangy110/article/details/6546622
The system provides an email system for communication between users. When a user opens a terminal to register and log on, the system displays the following information:
You have mail.
In this case, you can enterMailCommand to read mail:
$ Mail
The mail program displays users' emails one by one, and displays the latest emails in chronological order. Emails are asked every time a letter is displayed.
Whether the user wants to process the letter. If the user answers D, the email is deleted. If you press the Enter key, the email is not modified.
(The letter is still saved and can be read again next time); if you answer P, you need to repeat the letter; s filename indicates you want to put the letter
Store the named file. If you answer Q, it means you want to exit from mail.
[Root @ localhost ~] # Mail
Mail version 8.1 6/6/93. type? For help.
"/Var/spool/mail/root": 76 messages 76 unread
> U 1 root@localhost.local mon Jan 19 24/936 "cron <root @ localhost>"
U 2 root@localhost.local mon Jan 19 15:44 24/936 "cron <root @ localhost>"
U 3 root@localhost.local mon Jan 19 24/936 "cron <root @ localhost>"
U 4 root@localhost.local mon Jan 19 24/936 "cron <root @ localhost>"
U 5 root@localhost.local mon Jan 19 24/936 "cron <root @ localhost>"
> Indicates that the current email U indicates that the email is not read.
& P // display the current email
Message 1:
From root@localhost.localdomain mon Jan 19 15:43:02 2009
Date: Mon, 19 Jan 2009 15:43:02 + 0800
From: root@localhost.localdomain (Cron Daemon)
& 2 // display the file marked as 2
Message 2:
Other common parameters:
Unread mark as unread mail
H | headers: displays the current mail list
L | List displays the list of currently supported commands
? | HELP command parameter usage for displaying multiple mail lists
D. Delete the current email, and move the pointer down. D 1-100 Delete 1st to 100 emails
F | from only displays the simple information of the current email. F num: displays the simple information of an email.
F | from num pointer to an email
Z displays the last 20 emails in the inbox.
More | p | when reading the email content of the current pointer on the page, press the Space key to flip the page, and press the Enter key to move down a row
T | type | more | p | PAGE num read an email
N | next | {do not fill in anything} read the content of the next email containing the current pointer
When reading, pressing the Space key is to flip the page, and pressing the Enter key is to move down a row
V | visual current mail enters the plain text editing mode
N | next | {do not fill in anything} num reads an email
Top displays the mail header of the email with the current pointer
File | Folder: displays the file of the system email and the total number of emails.
Exit the MAIL command platform and do not save the previous operations, such as deleting emails.
Q: log out of the mail command platform and save the previous operations. For example, if you delete an email that has been deleted by D, the read email is saved to the current user's home directory.
In the mbox file. If you delete a file in mbox, it will be permanently deleted.
InLinuxText command platform InputMail-F mboxTo viewMbox.
CD changes the location of the current folder
When writing a letter, press Ctrl + C twice to stop working.
Press Ctrl + c once to exit reading.
Check whether the sent email is sent or stuck on the email server.
Syntax:/usr/lib/sendmail-BP
If "mail queue is empty" is displayed on the screen, mail has been sent.
Other error messages indicate that the email has not been sent for any reason.