Simple command to reset / clear all logs?

Redd Vinylene reddvinylene at
Wed Jan 12 20:01:33 UTC 2011

On Wed, Jan 12, 2011 at 8:58 PM, Polytropon <freebsd at> wrote:

> # for FILE in /var/log/*; do cat /dev/null > ${FILE}; done
> That would be better than my first suggestion. You can exchange
> the part "/var/log/*" for any `find ...` command that specifies
> the intended target(s) of your operation better than the builtin
> shell expansion of the * expression.
Now that's just beautiful, man :-)

Thanks a lot :-)

Please accept this gift
<>as a token of my
appreciation for your support!


More information about the freebsd-questions mailing list