Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1126801
  • 博文数量: 153
  • 博客积分: 10576
  • 博客等级: 上将
  • 技术积分: 2137
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-02 21:01
文章分类

全部博文(153)

文章存档

2009年(43)

2008年(110)

分类: LINUX

2008-10-22 19:27:32

linux自带的MAIL客户端用法
mail命令进入系统自带的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文档里定义
&

阅读(1863) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~