On Sun, 17 Feb 2002 12:25, dfox wrote:
> > My /var/log folder is getting fairly big (10 MB) and its growing quickly
> > (this computer has only 660MB for Linux :( ).
>
> How fast is it filling up? How much is it going to be tomorrow, or
> next week?
>
Not very fast: I'd estimate about 100K a day.

> /var should really be on a separate partition. That's not always
> possible, of course.
>
I agree but with only 660MB for Linux... :(

> > My question is: is it safe to regularly delete logs (using just the rm
> > command) or is there a "correct" way to do it?
>
> Well, the safe way is to kill -HUP the programs that are generating the
> logs, rm (or trim) the logs, and then restart the logging programs. That's
> basically what logrotate does.
>
So I can safely delete _anything_ in /var/log?
This is the thing that I'm really concerned about: Will I break anything by 
deleting?

> Removing the logs is possible, but you might want to see what's in there
> from time to time (otherwise, why bother to log?) so it's usually better
> to trim them. So for instance if your logs are over a month old, you could
> edit out all entries for December and/or January.
I only need to look at the logs for the last 24 hours (it's not connected to 
the internet but is a LAN telnet, ftp, ssh and mail server :)).

Thanks,
pesarif

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

Reply via email to