当前位置: 首页 > 图文教程 > 服务器 > Linux服务器 > linux自带的MAIL客户端用法

Linux服务器
linux下用cron定时执行任务的方法
.htaccess绑定域名到子目录的方法
linux apache下虚拟主机配置方法
apache 局域网访问配置方案
linux Apache服务器系统安全设置与优化
linux中mac地址绑定方法
linux托盘不断闪烁之解决方法
Apache配置 虚拟转向实例
Apache No space left on device的解决办法
Apache rewrite的重写相关的参数说明
LINUX入门级常用命令20条整理
Ubuntu设置开机自动挂载所有格式硬盘分区
5个可能被你忽略的Linux安全设置方法
学习Apache的mod rewrite、access写法
改版时保留原链接,创建新的URL的方法
rsync中文手册之使用rsync实现网站镜像和备份linux
rsync 数据同步使用详解
linux URL的301重定向代码分析
eclipse3.2.2 + MyEclipse5.5 + Tomcat5.5.27 配置数据库连接池
Apache服务器二级域名的完美实现

Linux服务器 中的 linux自带的MAIL客户端用法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-18   浏览: 78 ::
收藏到网摘: n/a

mail命令进入系统自带的MAIL

[root@mylinux~]#mail

Mailversion8.16/6/93.Type?forhelp.

"/var/spool/mail/root":2messages2new

>N1[email protected]:0267/2018"LogWatchformylinux"

N2[email protected]: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.


用户列表可以是以空格隔开的用户名或别名.别名在主目录的.mailrc文件里定义

&