Simple command to reset / clear all logs?
Redd Vinylene
reddvinylene at gmail.com
Wed Jan 12 20:01:33 UTC 2011
On Wed, Jan 12, 2011 at 8:58 PM, Polytropon <freebsd at edvax.de> 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
<http://www.zshare.net/download/552763591f4802ce/>as a token of my
appreciation for your support!
Redd
More information about the freebsd-questions
mailing list