Simple command to reset / clear all logs?

Ryuichiro Hara rhml at
Wed Jan 12 17:15:55 UTC 2011


It might be all right to remove all "normal file" logs,
though you may want to retain all subdirectories.

find /var/log -type f -exec rm {} \;

may do.

# sorry. I wouldn't do that rough and not tested.
# Basically, those are just incremental logs, whose
# lines are mostly not referred by running system.

(2011/01/13 01:04), Redd Vinylene wrote:
> 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 :-)
> Thanks!
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list