From owner-freebsd-questions@FreeBSD.ORG Wed Jan 12 17:15:54 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2B58106564A for ; Wed, 12 Jan 2011 17:15:54 +0000 (UTC) (envelope-from rhml@kibug.org) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id D031C8FC0A for ; Wed, 12 Jan 2011 17:15:54 +0000 (UTC) Received: by pvc22 with SMTP id 22so124263pvc.13 for ; Wed, 12 Jan 2011 09:15:54 -0800 (PST) Received: by 10.142.90.10 with SMTP id n10mr72539wfb.51.1294852553626; Wed, 12 Jan 2011 09:15:53 -0800 (PST) Received: from millet.bsd.lab (y047061.ppp.asahi-net.or.jp [118.243.47.61]) by mx.google.com with ESMTPS id q13sm1099663wfc.17.2011.01.12.09.15.52 (version=SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 09:15:53 -0800 (PST) Message-ID: <4D2DE216.6040505@kibug.org> Date: Thu, 13 Jan 2011 02:17:10 +0900 From: Ryuichiro Hara User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; ja-JP; rv:1.9.2.13) Gecko/20101221 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Simple command to reset / clear all logs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2011 17:15:55 -0000 Hello, 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"