From owner-freebsd-questions@FreeBSD.ORG Thu Jan 13 16:41:05 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 E222A1065670 for ; Thu, 13 Jan 2011 16:41:05 +0000 (UTC) (envelope-from xaero@xaerolimit.net) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7F18E8FC12 for ; Thu, 13 Jan 2011 16:41:05 +0000 (UTC) Received: by eyf6 with SMTP id 6so925007eyf.13 for ; Thu, 13 Jan 2011 08:41:04 -0800 (PST) Received: by 10.213.31.209 with SMTP id z17mr2499087ebc.12.1294936862557; Thu, 13 Jan 2011 08:41:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.8.142 with HTTP; Thu, 13 Jan 2011 08:40:42 -0800 (PST) In-Reply-To: <4D2EBA06.2030200@gmail.com> References: <4D2DE216.6040505@kibug.org> <20110112202145.515b24b3.freebsd@edvax.de> <20110113022304.GA2455@stainmore> <4D2EBA06.2030200@gmail.com> From: Chris Brennan Date: Thu, 13 Jan 2011 11:40:42 -0500 Message-ID: To: David Demelier Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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: Thu, 13 Jan 2011 16:41:06 -0000 On Thu, Jan 13, 2011 at 3:38 AM, David Demelier wrote: > But, there is sometime subdirectories in /var/log, it doesn't matter? And > truncate can write on archived files ? such as : > > markand@Melon ~ $ ls /var/log/messages*.bz2 > /var/log/messages.0.bz2 /var/log/messages.1.bz2 > logrotate is your friend. [root@blackdragon /usr/ports]# make search name=logrotate Port: logrotate-3.7.9 Path: /usr/ports/sysutils/logrotate Info: Daemon to rotate, compress, remove and mail system log files Maint: js@iksz.hu B-deps: gettext-0.18.1.1 gmake-3.81_4 libiconv-1.13.1_1 popt-1.16 R-deps: gettext-0.18.1.1 libiconv-1.13.1_1 popt-1.16 WWW: [root@blackdragon /usr/ports]# hth/c-