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 07-10-2019, 11:22 AM   #1
ceronmdz
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Rep: Reputation: Disabled
command mail


hi guys, on centos 7 i can't to read the mail messages with the mail command, on freebsd mail command show me the mails of crontab, system, etc...
On centos i have to go /var/mail/user to read the mails, however those are on plain text.

How can i to enable mail command to read, delete, etc.

thanks for you support, and sorry for my english poor.
 
Old 07-10-2019, 11:46 AM   #2
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 533

Rep: Reputation: 147Reputation: 147
Is the mail command installed?

If mail command is installed, what is the exact message that you get when you type "mail"?

If mail command is not installed, you need to install mailx package "sudo yum install mailx"
 
Old 07-10-2019, 11:51 AM   #3
ceronmdz
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
yes, the mail command is installed, it show me:
No mail for root
however, the mail file on /var/mail/root have a lot of mails
 
Old 07-10-2019, 12:01 PM   #4
ceronmdz
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
already can use mail command normaly, i needed to add -f to show the content of /var/mail/root file, now i just to do an alias to show me it automatically.

thanks!
 
  


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
Debian etch - Unable to send mail from command line or from php mail command lqforumuser Linux - Newbie 1 03-01-2009 06:56 AM
can mail command be used to send mail onto global mail servers like yahoo etc dale_chip Linux - Newbie 4 08-12-2008 08:33 AM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
You have mail in /var/mail/spool (or maybe /var/spool/mail) Jongi SUSE / openSUSE 1 04-04-2006 02:36 AM
mail mail & mail Ammad Linux - Networking 0 09-30-2004 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:51 AM.

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