In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the basic commands for operating email under Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the basic commands for operating email under Linux.
The system provides a mail system for communication between users. When the user opens the terminal to register and log in, it is found that the system gives the following information:
The code is as follows:
You have mail.
At this point, the user can read the letter by typing the mail command:
The code is as follows:
The mail program will display the user's letters one by one and display the latest letters in chronological order. Every time a letter is displayed, mail asks
Whether the user wants to do something about the letter. If the user answers d, the letter is deleted; if only the enter key is pressed, no change is made to the letter
Move (the letter is still saved and can be read next time); if you answer p, ask for a repeat display of the letter; s filename means to send the letter
Save to the named file; if you answer Q, you want to exit from mail.
The code is as follows:
[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 15:43 24 amp 936 "Cron"
U 2 root@localhost.local Mon Jan 19 15:44 24 stroke 936 "Cron"
U 3 root@localhost.local Mon Jan 19 15:45 24 stroke 936 "Cron"
U 4 root@localhost.local Mon Jan 19 15:46 24 stroke 936 "Cron"
U 5 root@localhost.local Mon Jan 19 15:47 24 stroke 936 "Cron"
> indicates that the current message U is unread
The code is as follows:
& p / / Show the current message
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)
The code is as follows:
& 2 / / display the file labeled 2
Message 2:
Other commonly used parameters:
Unread marked as unread message
H | headers displays the current mailing list
L | list displays a list of currently supported commands
| help displays the usage of multiple command parameters for viewing mailing lists
D delete the current message, move the pointer down. D 1-100 Delete 1st to 100th messages
F | from only displays simple information about the current message. F num displays simple information about a message
F | from num pointer moves to an email
Z displays the last 20 mailing lists when you first started your inbox
More | p | page when reading the content of the email where the current pointer is located, press the spacebar to turn the page, and press enter to move down one line
T | type | more | p | page num reads an email
N | next | {nothing} read the next email where the current pointer is located
When reading, press the space bar to turn the page, and press enter to move down one line
| v | visual current email enters plain text editing mode |
N | next | {nothing} num read an email
Top displays the header of the message in which the current pointer is located
File | folder displays information such as the file in which the system messages are located, as well as the total number of messages
X exit the mail command platform and do not save previous operations, such as deleting messages
Q exit the mail command platform and save previous operations, such as deleting messages deleted with d, and the read messages will be transferred to the current user's home.
In the recorded mbox file. If you delete the file in mbox, it will be deleted completely.
Type mail-f mbox on the linux text command platform, and you can see the messages in the mbox in the current directory.
Cd changes the location of the current folder
When writing a letter, pressing the Ctrl+C key twice will interrupt the work and do not send the letter.
When reading the letter, press Ctrl+C once to exit the reading state.
Check whether the delivered e-mail is sent or stranded in the mail server
Syntax:
The code is as follows:
/ usr/lib/sendmail-bp
If the screen displays a message of "Mail queue is empty", it means that the mail has been sent.
If it is another error message, the email has not been sent for some reason.
At this point, I believe you have a deeper understanding of "what are the basic commands for operating mail under Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.