Linux: Count New Email Messages

I frequently see this message when I am at the command line:
You have new mail in /var/spool/mail/myusername

Is there a way for me to find out how many new email messages there are?
LVL 16
hankknightAsked:
Who is Participating?
 
MazdajaiConnect With a Mentor Commented:
mail|head -2|grep messages

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.