Linux Mail in Terminal
When logging into the terminal and you see the message '"You have mail'mail" youmessage, haveand somewant options:
Viewdelete thelistmail,ofImail:use- this:
View The Mail
cat /var/spool/
mail/rootmailDelete The Mail
(
changeChange root to the username youwannawantcheck)to
mail Deletefor)the mail:> /var/mail/root
(thisCommon
willUsernamesdeleteThese
all messages for root - leaveare thegreater than symbol)
Leave the > symbol when executing the delete command! You are in effect redirecting the output of nothing to the file, which will truncate it
Commontwo usernames that I will havesee mail:mail for, usually:
- root
- www-data