Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Red Hat Mail

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am taking a summer class in Linux Server. When I am logged in as root and at a shell prompt, what command do I type to read other users' mail?

Not that I am bored enough to do that, this is an assignment question. I searched in man pages for mail command and could not find it. Where else can I read more about the subject? I even used Google.com to look for more command, but could not find this.

Thanks in advance for your reply.
 
mail username IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
 
Code:
mail username
would send an email to username. You need to use the -u flag.
Code:
mail -u username

Which, by the way >>
"I searched in man pages for mail command and could not find it."

How thoroughly did you search? Did you try
Code:
man mail
?

jaa
 
Sorry, suffered brainfade for a moment, don't know what I was thinking...

Yip, mail -u username is the command you want. IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
 
or you can do it the oldfashoned way:

$less /var/mail/username

--cb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top