logrotate

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: Can i edit/del log files
From: Ramon Gandia <rfg@nook.net>
Date: Thu, 17 Jun 1999 00:29:03 -0800


Linux Group wrote:
> 
> Hello!
> 
> Can i edit or delete some lines of the files such as access.log, etc.
> located at /usr/local/squid/logs/ using vi? some files occupies a large
> space in the disk.

Yes, you can delete them, or logrotate them.  Logrotate works
with any files that "grow"; every so often, which you determine,
it tars up the file and saves it for you and starts a new one.
Or, you can link some of them to /dev/null.

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu