Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: quickesy way to zero HUGe log files
- X-seq: zsh-users 10817
- From: dom@xxxxxxxxxxxxxxxx (Dominic Mitchell)
- To: zsh-users@xxxxxxxxxx
- Subject: Re: quickesy way to zero HUGe log files
- Date: Mon, 9 Oct 2006 17:13:47 +0100
- In-reply-to: <20061009073941.GA17078@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9857563677866zzappergmailcom@xxxxxxxxxxx> <20061009073941.GA17078@xxxxxxxxxxxxxxxxxxxxx>
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