Skip to main content

Linux Mail in Terminal

When logging into the terminal and you see the "You have mail" message, and want to delete the mail, I use this:

View The Mail
cat /var/spool/mail
Delete The Mail

(Change root to the username you want to delete mail for)

> /var/mail/root
Common Usernames

These are the two usernames that I will see mail for, usually:

  • root
  • www-data