Date: Fri, 31 May 1996 11:33:58 +0200 (MET DST) From: Philippe Regnauld <regnauld@tetard.hsc.fr> To: mpp@freefall.freebsd.org (Mike Pritchard) Cc: hackers@freebsd.org (hackers) Subject: Re: df && du Message-ID: <199605310933.LAA01665@tetard.hsc.fr> In-Reply-To: <199605310138.SAA27368@freefall.freebsd.org> from Mike Pritchard at "May 30, 96 06:38:02 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Pritchard écrit / writes: > > /dev/wd0s1e 30206 24720 3068 89% /var > > > > altair# cd /var > > altair# du -s . > > 12776 . > > altair# > > > > 12776 (du result) not even close to 24720 (df output) > > 12776 * 2 = 25552, which is pretty close. Did you run df with the > BLOCKSIZE environment variable set to "K", and du from > one without it being set? > > Try "du -sk" and see if you get something that is close to df's output. Anyway, I think du is broken in most of its implementation; it seems to have serious problems with links and such. A friend of mine's written a realdu utility some time ago, on SunOS 4.1.2 -- it also works on 2.1.0. I think it also supports the standard options (for scripts who rely on it). But it's a bit slower in 'real' mode. Anyone interested? -- Phil -- +-------------------+---------------------------------------+-----------------+ | Philippe Regnauld |_______Herve Schauer Consultants_______| regnauld@hsc.fr | +-------------------+FreeBSD - Turning PCs into Workstations+-----------------+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605310933.LAA01665>