LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2007, 12:06 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Rep: Reputation: 30
want to see root's saved mail


Dear Friends,

I m using RHEL 4.0 . In Linux using "mail" command I have to see the system related file via mail . And when I have to quit then it saves the mail .

My question , where the mail is saved and in future time If I want to see these previous mail then which command I need to execute ?
Plz help ...
 
Old 08-25-2007, 01:15 PM   #2
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Rep: Reputation: 30
If I remember correctly, it either gets saved in /var/mail/ as an ASCII file which you can open with your favourite editor.
The root mail would be /var/mail/root
(Your Mileage May Vary)
 
Old 08-25-2007, 04:47 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Actually, the saved mail are collected in a text file called $HOME/mbox. They can be viewed by
Code:
mail -f $HOME/mbox
/var/mail on Red Hat is a link to /var/spool/mail which is the real post office, that is the repository of the mail currently in your (not archived) mailbox. If you want to exit from mail without saving, you can type x instead of q.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where's root's mail gone? Witton Fedora 8 01-09-2007 07:23 PM
Checking root's mail with ipop3 iroxa Linux - Software 2 05-18-2004 06:00 PM
root's mail via KMail brucehohl Linux - Software 5 09-24-2003 07:09 PM
How can I read root's mail using postfix on RH9 ??? asafnaot Linux - Software 3 06-01-2003 12:00 PM
Mutt, how to see saved mail onurb Linux - Software 4 03-12-2003 11:19 AM


All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration