LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2003, 07:21 AM   #1
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Help with mail...


I am a relative Linux newbie.
When I type "mail" at a command line, I find 481 messages in my inbox.
How do I delete all of these messages?
 
Old 01-17-2003, 10:36 AM   #2
randyennis
LQ Newbie
 
Registered: Jan 2003
Posts: 10

Rep: Reputation: 0
You'll probably find that these messages are system logs, and you're probably running as 'root'. Please don't use the root user as your normal user ID, since you can accidentally destroy your system, as the root user has "God" powers -- you can delete or change any file in the system. Trust me -- been there, done that! If you haven't already, create another regular user and login that way to use the system. Use root only to administer things that can't be done by a regular user.

OK, that's out of the way! To delete mail, enter the "mail" command, at the prompt enter 'd #- #' (without quotes, of course), where '# - #' is the range of messages you wish to delete. In other words, to delete the first 400 messages, you would enter 'd 1-400'. To quit, enter 'q'. (At least, that's the way it always used to be!)
 
Old 01-17-2003, 10:54 AM   #3
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Original Poster
Rep: Reputation: 32
Check.
I'm aware of the root priveledge and they are system messages that I am trying to remove.

Thanks for your help.

CMF
 
  


Reply



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
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 10:18 AM
Configure & Connect a Linux mail server from a windows mail clients digihall7 Linux - Networking 4 10-23-2006 12:21 PM
sendmail error Fetching mail could not lock /var/spool/mail/username sukhdev50 Linux - Networking 0 05-04-2005 03:41 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM
parsing mail.log with perl and calculate mail traffic on domain base markus1982 Programming 1 03-18-2003 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:19 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
Open Source Consulting | Domain Registration