装完CentOS以后每出入一个命令后,现在都会提示“You have new mail in /var/spool/mail/root”,看着有点闹心。想以后不提示这个的方法如下:
方法一:
echo "unset MAILCHECK" >> /etc/profile
方法二:
vim /usr/share/logwatch/default.conf/logwatch.conf #将下面内容: MailTo = root #修改为: MailTo = ****@126.com #指定要接收的邮箱
转载于:https://blog.51cto.com/hooper/1294958