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,

-- 
Trish Fraser, Sunbury, Australia
Linux user #283226  counter.li.org
andromeda up 1 day and counting
kernel 2.4.21-0.13mdk


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

Reply via email to