linux: How to Remove You have new mail /var/spool/mail/root

Sometimes when you enter the system, you are often prompted to have new mail in/var/spool/mail/root. If you find it annoying, you can solve it like this:

Command line input: echo “unset mail check” > > & etc/profile

It means [append unset mail check to the end of the file/etc/profile], and you will not be prompted after logging in again.

Similar Posts: