On Wed, 2003-09-17 at 23:18, Patricia Fraser wrote:
> Hi Asmeet,
> 
> > my /var/log/messages file is too big... and as i understand, it gets
> > compressed and moved to messages1.gz every 7 days...
> >
> > how do u force it to do it now?
> 
> In a terminal as root (I usually use Ctrl-Alt-F1) type
> 
> logrotate -f /etc/logrotate.conf
> 
> and in a little while you'll find yourself with a whole new set of *.gz 
> files.
> 
> > also, it is safe to manually delete the messages*.gz files right?
> 
> Sure is!
> 
> If you're finding that /var/log is getting filled up too quickly, you 
> can set up a cron job to rotate the logs more often. If you're just 
> running out of space, a truly lovely command is
> 
> du -sh * |more
> 
> which will tell you the size of the contents of all directories below 
> the current working directory. Lovely when you're running out of space 
> and don't know *where*!
> 
> Cheers,

I might add that if space is a problem and logs are large.  edit
/etc/logrotate.conf and where it says

# keep 4 weeks worth of backlogs
rotate 4

change it to rotate 2 or 1  this is the number of "backups" it keeps
around before the system auto-deletes.

james



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to