Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: quickesy way to zero HUGe log files



On Mon, Oct 09, 2006 at 09:39:41AM +0200, Stanislaw Halik wrote:
> On Mon, Oct 09, 2006, zzapper wrote:
> > May be O/T what would be the quickest way to zero my huge "in use" Apache 
> > log files?. I usually vim them, but they've got so huge that that's a pain
> 
> Truncate them to 0 bytes? ": > /log/file" will do.

"cp /dev/null /log/file" is another way.  The only reason I mention it
is that I find it easier in combination with sudo.

-Dom



Messages sorted by: Reverse Date, Date, Thread, Author