Linux how to empty root email

If you are administering nix server you’ve probably noticed that root account is used by default for many system emails.

If you did set email forwarding you already received them, but in case you did not the folder continues to grow and it can get thousands of emails.
Cleaning all those email via mail client is at least time consuming.

If you do not want any of those messages you can speedup the process by typing following command:

> /var/spool/mail/root

If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.