• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

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?
0
hankknight
Asked:
hankknight
1 Solution
 
MazdajaiCommented:
mail|head -2|grep messages

Open in new window

0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now