[root@mylinux ~]# mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/root": 2 messages 2 new
>N 1 root@localhost.local Mon Dec 31 04:02 67/2018 "LogWatch for mylinux"
N 2 root@localhost.local Sun Jan 6 04:02 53/1689 "LogWatch for mylinux"
& help //进入帮助
Mail Commands
t
n goto and type next message //显示下一条消息,常用
e
f
d
s
u
R
r
pre
m
q quit, saving unresolved messages in mbox //退出,保存未处理的邮件
x quit, do not remove system mailbox //退出,不从/usr/spool/mail删除已处理的邮件
h print out active message headers //显示活动的邮件头,常用
! shell escape //打印!
cd [directory] chdir to directory or home if none given //改变当前工作目录
A
by spaces. If omitted, Mail uses the last message typed.
邮件列表可以是以空格隔开的单个邮件,连续的邮件,或指定用户的邮件,如果缺省,MAIL会使用最近显示的邮件
A
Aliases are defined in .mailrc in your home directory.
用户列表可以是以空格隔开的用户名或别名.别名在主目录的.mailrc文件里定义
&