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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

full mail file - how to remove

Status
Not open for further replies.

Nosh

Programmer
Jul 12, 2001
34
GB
Folks,

I am not a Unix administrator - just a lowly programmer.

I have a user whose unix mail files appear to be really full. Can I just log in as root and delete the mail file in question? Will it be recreated when new mail is sent to it?

Cheers
 
Nosh (which reminds me, it's lunchtime!), yes, but possibly the way to do it would be to log in as root, cd to where the mail file is and do:

cat /dev/null > usermailfilename

This retains the (empty) file and permissions. I'm assuming there's nothing important in the file to be kept? Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top