Here’s a familiar scenario: you open a new terminal, and before the prompt
appears, you see the following.
You have new mail.
What’s going on here?
Explanation
Events in your operating system can send messages to your mail queue. Although
it’s tempting to ignore them because they aren’t colored red or filled with
hyperbolic language, you should not ignore these messages. In many cases, your
operating system is trying to tell you something important.
Inspect these messages with the mail command.
Action
Uh oh, 60 unread messages! Time to get reading. Read each message with mail,
followed by p to print the current message. Go fix what’s wrong, and then
dispose of the message with d.
Alternatively, you can read this mail file directly. Here’s an example entry:
The Cron portion of Subject: reveals that this message is from a failing
cron job. All of my recent messages are the result of problematic cron
commands; in fact that’s a great way to pile up a bunch of automated mail
messages. Fix the commands and clear out the mail.