Subject: Re: need room on /
To: Jeremy C. Reed <reed@reedmedia.net>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 02/07/2003 08:10:56
On Thu, Feb 06, 2003 at 10:42:02PM -0800, Jeremy C. Reed wrote:
> On Fri, 7 Feb 2003, James K. Lowden wrote:
> 
> > understand -- assuming these utilities work correctly on 1.4.2 -- how du
> > and df can disagree.
> 
> Maybe you have processes running that still have files open that were
> unlinked.

When you tried to get rid of the large log files, which command did
you use?

'rm file' just removes the directory entry 'file', the file itself
is only deleted when there are no directory entries referencing it
AND when the file isn't open.

To free the space taken by a file you need to truncate it.  The
easiest way to do that is with the command ': >file' (ie request
the shell to do it as part of the redirect on its null command).

	David

-- 
David Laight: david@l8s.co.uk