linux自带的MAIL客户端用法 |
| 发布时间: 2012/8/11 11:29:37 |
|
mail命令进入系统自带的MAIL
[root@mylinux~]#mail Mailversion8.16/6/93.Type?forhelp. "/var/spool/mail/root":2messages2new >N1root@localhost.localMonDec3104:0267/2018"LogWatchformylinux" N2root@localhost.localSunJan604:0253/1689"LogWatchformylinux" &help//进入帮助 MailCommands ttypemessages//程序调用more显示消息,后接单个消息号或是一个范围,如t1或者t1-2 ngotoandtypenextmessage//显示下一条消息,常用 eeditmessages//程序会调用vi编辑消息 fgiveheadlinesofmessages//给出指定消息的消息头 ddeletemessages//删除消息,并没有实际删除 sfileappendmessagestofile//将消息附加到指定文件后 uundeletemessages//还原删除的消息 Rreplytomessagesenders//回复邮件 rreplytomessagesendersandallrecipients//回复邮件给发送者与其它接收者 premakemessagesgobackto/usr/spool/mail//将邮件放回/usr/spool/mail,其实邮件本来就在这个目录,但当你阅读后,保存退出,邮件会转移,并附加到/root/mbox这个文件里 mmailtospecificusers//将邮件发给特定用户 qquit,savingunresolvedmessagesinmbox//退出,保存未处理的邮件 xquit,donotremovesystemmailbox//退出,不从/usr/spool/mail删除已处理的邮件 hprintoutactivemessageheaders//显示活动的邮件头,常用 !shellescape//打印! cd[directory]chdirtodirectoryorhomeifnonegiven//改变当前工作目录 Aconsistsofintegers,rangesofsame,orusernamesseparated byspaces.Ifomitted,Mailusesthelastmessagetyped. 邮件列表可以是以空格隔开的单个邮件,连续的邮件,或指定用户的邮件,如果缺省,MAIL会使用最近显示的邮件 Aconsistsofusernamesoraliasesseparatedbyspaces. Aliasesaredefinedin.mailrcinyourhomedirectory.
本文出自:亿恩科技【www.enkj.com】 |
京公网安备41019702002023号