Jump to content

delete all mail?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
Guest_Wanch_*

Guest_Wanch_*
  • Guests
When I view "mail" there are a ton of items in there. I want to see the last item. Is there a way to delete all items? Or all items but the last item?


# mail



#2
Tor

Tor

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 486 posts
You can just empty the mail file. The mail file is at:

# /var/spool/mail

For root it would be

# /var/spool/mail/root


#3
LinuxBomber

LinuxBomber

    Learning Programmer

  • Members
  • PipPipPip
  • 78 posts
Doesn't Linux have something like Thunderbird?

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well, you can install something like that...

#5
TotalNoob

TotalNoob

    Learning Programmer

  • Members
  • PipPipPip
  • 49 posts
So why are they using CLI to delete mail?

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
I've got no idea. Maybe that is for some kinda server?

#7
Guest_Wanch_*

Guest_Wanch_*
  • Guests

TotalNoob said:

So why are they using CLI to delete mail?

Because it is system mail (root) and I am logged in via SSH.

#8
nadha

nadha

    Learning Programmer

  • Members
  • PipPipPip
  • 44 posts

Wanch said:

When I view "mail" there are a ton of items in there. I want to see the last item. Is there a way to delete all items? Or all items but the last item?

# mail
It is possible to delete the mails.. You can do all the options you have on windows here. SO you need not worry