On Sun, 17 Feb 2002 00:04, [EMAIL PROTECTED] wrote: > On Sat, 16 Feb 2002, Nguyen Hung.Takeshi wrote: > > pesarif wrote: > > > Hello, > > > > > > My /var/log folder is getting fairly big (10 MB) and its growing > > > quickly (this computer has 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? > > > > > > Surely, there is a special program to do this (that's more > > > user-friendly than logrotate)? > > > > Sure, you can create a cron job run every day to delete them: > > > > for example > > > > man crontab > > rm -rf /var/log/cron* > > echo "" > /var/log/cron > > rm -rf /var/log/messages.* > > echo "" > /var/log/messages > > .... > > To the OP: > Using the echo as in the example above is a good idea. Lots of problems > can be caused by just doing an rm. > > That said, logrotate is the best way to do this, since it archives a > copy of your logs if needed. Which logs are you having throuble with? Just generally all of them because there isn't enough disk space.
Thanks, pesarif
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
