From: dom@happygiraffe.net (Dominic Mitchell)
To: zsh-users@sunsite.dk
Subject: Re: quickesy way to zero HUGe log files
Date: Mon, 9 Oct 2006 17:13:47 +0100 [thread overview]
Message-ID: <20061009161347.GB92051@gimli.happygiraffe.net> (raw)
In-Reply-To: <20061009073941.GA17078@localhost.localdomain>
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
next prev parent reply other threads:[~2006-10-09 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-09 7:28 zzapper
2006-10-09 7:39 ` Stanislaw Halik
2006-10-09 12:53 ` zzapper
2006-10-09 16:13 ` Dominic Mitchell [this message]
2006-10-09 16:42 ` Brian K. White
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061009161347.GB92051@gimli.happygiraffe.net \
--to=dom@happygiraffe.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).