说明 每次登录系统,使用命令时候就会出现提示,很烦。 内容就只是一些正常的系统信息或者是比较重要的错误报告,所以希望可以忽略。 解决方案 清空 ls -lth /var/spool/mail/ cat /dev/null > /var/spool/mail/root 关闭 echo "unset MAILCHECK">> /etc/profile source /etc/profile 以上方法亲测有效,测试机器CentOS 7