Simple command to reset / clear all logs?
Robert Bonomi
bonomi at mail.r-bonomi.com
Thu Jan 13 06:31:37 UTC 2011
> From owner-freebsd-questions at freebsd.org Wed Jan 12 10:09:51 2011
> Date: Wed, 12 Jan 2011 17:04:26 +0100
> From: Redd Vinylene <reddvinylene at gmail.com>
> To: questions <questions at freebsd.org>
> Cc:
> Subject: Simple command to reset / clear all logs?
>
> Hi,
>
> Is there a simple command to reset / clear everything in my /var/log? I've
> done a lot of testing, configuring, trial and error and most of my logs are
> just full of bullshit and I'd like a fresh start :-)
something like:
foreach file in (/var/log/*log)
echo "" > $file
end
maybe ?
More information about the freebsd-questions
mailing list