From owner-freebsd-questions Tue Mar 2 22: 8: 1 1999 Delivered-To: freebsd-questions@freebsd.org Received: from magi.primenet.com (magi.primenet.com [206.165.0.136]) by hub.freebsd.org (Postfix) with ESMTP id 36CD914E86 for ; Tue, 2 Mar 1999 22:07:59 -0800 (PST) (envelope-from scarter@magi.primenet.com) Received: (from scarter@localhost) by magi.primenet.com (8.9.3/8.9.1) id XAA20657; Tue, 2 Mar 1999 23:07:12 -0700 (MST) Date: Tue, 2 Mar 1999 23:07:12 -0700 From: Steve Carter To: Langa Kentane Cc: "'freebsd-questions@freebsd.org'" Subject: Re: Log files (newbie) Message-ID: <19990302230712.B20613@globalcenter.net> References: <913B8C252194D2119BD500805F318178970540@za12nt02.mweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <913B8C252194D2119BD500805F318178970540@za12nt02.mweb.com>; from Langa Kentane on Wed, Mar 03, 1999 at 07:54:25AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Use the 'touch' command to create the file after deleting them. There are utilities (logrotate jumps to mind) that will manage your log files for you. -Steve Langa Kentane wrote: > My question about log files is ... how do you get rid of them.. I want to > delete some of the stuff on the logs but I don't know the correct way to do > this. > > I know that there is a unix command to create a file that has nothing on > it.. maybe that is the answer. And what would happen if I just delete the > file. Will a new one be created? Or will FreeBSD complain that it can't > find the original file all the time? > > Thanks in advance > > ________________________________________________________________________ > Langa F. Kentane (CNA, MCP) | Unix, DOS & Window > Technical Suppot | The good, the bad & the ugly > M-Web Connect PTY/LTD | mailto:evablunted@earthling.net > Tel: +27 82 960 4963 | http://members.xoom.com/evablunted > ________________________________________________________________________ > "Microsoft isn't evil, they just make really crappy Operating Systems" > - Linus Torvalds > ________________________________________________________________________ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message