(Automatic time synchronization task) How to solve "You have new mail in /var/spool/mail/root" in Linux

the reason

Because we set an automatic time synchronization task for the virtual machine, an email and prompt will be sent every time the crond task is executed
Insert picture description here

/etc/profile configuration

Insert picture description here

-It means to append the phrase "unset MAILCHECK" to the end of the /etc/profile file to cancel the mailbox check.

If you want to enable it, you can enter the profile file and finally remove this line.
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43674360/article/details/111316159