Linux有时会出现“You have new mail in /var/spool/mail/root”,很烦人,如何禁止掉呢?

需要修改系统配置文件,告诉系统不要去检查邮箱

[root@localhost ~]#echo "unset MAILCHECK">> /etc/profile

其实就是把unset MAILCHECK加到文件/etc/profile 的尾部即可

然后重新登陆控制台就没有这个讨厌的提醒了。