mail command

I am new to mail command and I need help with mail command.

I did setup a cron job to run everyday.  When I tried to run mail command its shows
"/var/spool/mail/root": 2445 messages 2368 unread

How do i use this command to search better

I would really appreciate if someone can share the information.
ittechlabLinux SupportAsked:
Who is Participating?
Dave GouldConnect With a Mentor Onsite SupportCommented:
Once you've read your mails, you might want to avoid them in the first place!
You are probably getting them from the cron jobs as you do not redirect the output.
ie use something like this in your crontab:

10 * * * * your_script > log_file 2>&1
Can you show us the command you are running?

What exactly are you trying to do?
ittechlabLinux SupportAuthor Commented:
actually when i run mail command i see a list but if i want to see more what is the command
ittechlabLinux SupportAuthor Commented:
how do i see more list
Try the + and - signs
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.