Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: andy thomas <andy@ic.ac.uk>
Subject: Re: Reducing The size of /var/adm/messages file
Date: Tue, 17 Sep 2002 08:54:02 +0100	[thread overview]
Message-ID: <Pine.LNX.4.44.0209170851370.24994-100000@anahata.ma.ic.ac.uk> (raw)
In-Reply-To: <%xwh9.9789$yt3.4718644@newssrv26.news.prodigy.com>

On Tue, 17 Sep 2002, DS Group wrote:

> To reduce the size of the /var/adm/messages file, can I just open it with vi
> and delete some of the lines it contains? Or is there another way? Thanks.

You could just do:

	cd /var/adm
	tail -100 messages > tmpfile
	cat tmpfile > messages

This saves the last 100 lines while preserving the open /var/adm/messages
file state.

Andy



  reply	other threads:[~2002-09-17  7:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-17  2:35 Reducing The size of /var/adm/messages file DS Group
2002-09-17  7:54 ` andy thomas [this message]
2002-09-17 11:56 ` Nico Kadel-Garcia
2002-09-18  7:13   ` andy thomas
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox