Linux下的mail命令
经常用root帐号登录RHEL5,在终端经常出现:
You have new mail in /var/spool/mail/root
这肯定是系统给root超级管理员发的一些通知邮件,我常用mail命令来查看。
【注意】下面mail命令的help帮助是我个人随便翻译的linux命令linux命令,准确的请看英文说明
[root@pps mail]# mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/root": 24 messages 24 unread
>U 1 logwatch@rhel5-pps.h Mon Feb 16 17:27 117/3862 "Logwatch for rhel5-pp"
U 2 logwatch@rhel5-pps.h Mon Feb 16 17:27 107/3658 "Logwatch for rhel5-pp"
...
U 20 logwatch@pps.hoho.co Wed Mar 11 10:10 139/4567 "Logwatch for pps.hoho"
U 21 root@pps.hoho.com Wed Mar 11 13:15 20/664 "Re: Warning: could no"
U 22 MAILER-DAEMON@pps.ho Wed Mar 11 13:15 71/2294 "Returned mail: see tr"
& help //如果不会使用或者忘记了什么命令,就输入 help 或者 ? 来获取帮助
Mail Commands
t <message list> 打印出信息【注意】多个信息用空格分开,如 t 1 7