你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux系统中自带的MAIL客户端使用技巧

[日期:2008-01-23] 来源:Linux公社  作者:Linux [字体:大 中 小]

Linux系统中自带MAIL客户端,Linux公社整理了一些使用方法及技巧。

mail命令进入Linux系统自带的MAIL

[root@mylinux ~]# mail

Mail version 8.1 6/6/93. Type ? for help.

"/var/spool/mail/root": 2 messages 2 new

>N 1 root@localhost.local Mon Dec 31 04:02 67/2018 "LogWatch for mylinux"

N 2 root@localhost.local Sun Jan 6 04:02 53/1689 "LogWatch for mylinux"

& help //进入帮助

Mail Commands

t type messages //程序调用more显示消息,后接单个消息号或是一个范围,如t 1 或者t 1-2

n goto and type next message //显示下一条消息,常用

e edit messages //程序会调用vi编辑消息

f give head lines of messages //给出指定消息的消息头

d delete messages //删除消息,并没有实际删除

s file append messages to file //将消息附加到指定文件后

u undelete messages //还原删除的消息

R reply to message senders //回复邮件

r reply to message senders and all recipients //回复邮件给发送者与其它接收者

pre make messages go back to /usr/spool/mail //将邮件放回/usr/spool/mail,其实邮件本来就在这个目录,但当你阅读后,保存退出,邮件会转移,并附加到/root/mbox这个文件里

m mail to specific users //将邮件发给特定用户

q quit, saving unresolved messages in mbox //退出,保存未处理的邮件

x quit, do not remove system mailbox //退出,不从/usr/spool/mail删除已处理的邮件

h print out active message headers //显示活动的邮件头,常用

! shell escape //打印!

cd [directory] chdir to directory or home if none given //改变当前工作目录

A consists of integers, ranges of same, or user names separated

by spaces. If omitted, Mail uses the last message typed.

邮件列表可以是以空格隔开的单个邮件,连续的邮件,或指定用户的邮件,如果缺省,MAIL会使用最近显示的邮件

A consists of user names or aliases separated by spaces.

Aliases are defined in .mailrc in your home directory.

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

&

linux
相关资讯       Linux MAIL 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款