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

Linux服务器
apache urlrewrite防盗链功能配置
实战 LAMP 服务器配置 完整篇
tomcat 5.5连接池配置,如何让工程为默认工程
搭建一个大型网站架构的实验环境(Squid缓存服务器篇)
Windows 配置Apache以便在浏览器中运行Python script的CGI模式
Apache 网站速度更快
ubuntu lighttpd+webpy (fastcgi)配置方法
linux 入侵常用命令汇编
Linux 快速定位web路径方法
winxp apache用php建本地虚拟主机的方法
Apache 多站点虚拟主机配置方法
redhat Server release 5.2 安装配置简明教程
Ubuntu Linux系统下轻松架设nginx+php服务器应用
Linux Apache+Proftpd构建虚拟主机时要注意的几个安全问题
Linux 服务器同步 Rsync同步服务器文件
APACHE 多站点配置方法
基于Apache的支持.NET2.0的Web服务器搭建
Ubuntu 下配置Rsync服务的方法
利用rsync自动备份 完全配置方法 增加了ip限制
Linux 每天自动备份mysql数据库的方法

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-18   浏览: 74 ::
收藏到网摘: 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文件里定义

&