在 linux 中输入 mail, 就进入了收件箱.
d
删除当前邮件,指针并下移.
d 3
删除编号为 3 的邮件.
d 1-100
删除编号第 1 到 100 封邮件.
退出的时候需要注意,一定要用 q 命令来保存之前的操作.
q
退出mail命令平台,保存之前的操作,比如删除已用d删除的邮件,已阅读邮件会转存到当前用户家目录下的mbox文件中.如果在mbox中删除文件才会彻底删除.
x
退出mail命令平台,并不保存之前的操作,比如删除邮件
================================以下为实例=====================================
$ mail
Mail [5.2 UCB] [AIX 5.X] Type ? for help.
"/var/spool/mail/oracle": 38 messages 38 unread
>U 1 daemon Sun Jan 30 16:22 32/953 "Output from cron job /home/o"
U 2 daemon Mon Jan 31 00:00 32/953 "Output from cron job /home/o"
U 3 daemon Tue Feb 1 00:00 32/951 "Output from cron job /home/o"
U 4 daemon Wed Feb 2 00:00 32/951 "Output from cron job /home/o"
U 5 daemon Thu Feb 3 00:00 32/951 "Output from cron job /home/o"
U 6 daemon Fri Feb 4 00:00 32/951 "Output from cron job /home/o"
U 7 daemon Sat Feb 5 00:00 32/951 "Output from cron job /home/o"
U 8 daemon Sun Feb 6 00:00 32/951 "Output from cron job /home/o"
U 9 daemon Mon Feb 7 00:00 32/951 "Output from cron job /home/o"
U 10 daemon Tue Feb 8 00:00 32/951 "Output from cron job /home/o"
U 11 daemon Wed Feb 9 00:00 32/951 "Output from cron job /home/o"
U 12 daemon Thu Feb 10 00:00 32/953 "Output from cron job /home/o"
U 13 daemon Fri Feb 11 00:00 32/953 "Output from cron job /home/o"
U 14 daemon Sat Feb 12 00:00 32/953 "Output from cron job /home/o"
U 15 daemon Sun Feb 13 00:00 32/953 "Output from cron job /home/o"
U 16 daemon Mon Feb 14 00:00 32/953 "Output from cron job /home/o"
U 17 daemon Tue Feb 15 00:00 32/953 "Output from cron job /home/o"
U 18 daemon Wed Feb 16 00:00 32/953 "Output from cron job /home/o"
U 19 daemon Thu Feb 17 00:00 32/953 "Output from cron job /home/o"
U 20 daemon Fri Feb 18 00:00 32/953 "Output from cron job /home/o"
U 21 daemon Sat Feb 19 00:00 32/953 "Output from cron job /home/o"
U 22 daemon Sun Feb 20 00:00 32/953 "Output from cron job /home/o"
U 23 daemon Mon Feb 21 00:00 32/953 "Output from cron job /home/o"
U 24 daemon Tue Feb 22 00:00 32/953 "Output from cron job /home/o"
U 25 daemon Wed Feb 23 00:00 32/953 "Output from cron job /home/o"
U 26 daemon Thu Feb 24 00:00 32/953 "Output from cron job /home/o"
U 27 daemon Fr |