Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Whenever I ssh to my server box, I get 'You have mail' along with banner message. Then I type mail, and go through msgs, by hitting enter, until At EOF shows up, and when I do quit or ctrl+d, and re-login to my server, I get same msg about You have mail...

Is there a manual for that mail utility?

share|improve this question
Have you tried man mail in the SSH terminal? –  Mokubai Mar 9 '13 at 7:47
add comment

1 Answer

up vote 0 down vote accepted

The manual is usually accessible using man mail, as with any other program.

You can tell it to delete all messages by entering d *, or just mark them as read with seen *.

The messages themselves are stored in /var/mail/$USER (or /var/spool/mail/$USER). If you have a MTA installed and configured, you can forward them to your real mailbox (e.g. Gmail) by putting the email address in the ~/.forward file.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.