Linux send/receive mail

发信:
method 1
1. mail -s <topic> <username>
2. Subject后面写内容
3. 结束:新建一行输入:.回车
4. 输入抄送人
 
method 2
#<command>|mail -s <topic> <username>
Example: ls -l|mail -s "mail" user2
 
收信:
check:
1. cat /var/spool/mail/<username>
2. mail
input the the number to read email
Normal exit:x
 
Delete mail:
end with q to exit the email will be move to <home directory>/mbox

 

Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error