Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2004 17:32:31 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Chris <racerx@makeworld.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: du
Message-ID:  <20040316173231.GA60404@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <200403161055.33013.racerx@makeworld.com>
References:  <BAY15-DAV9wUHZPqxv200019f6f@hotmail.com> <200403161053.46311.racerx@makeworld.com> <200403161055.33013.racerx@makeworld.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 16, 2004 at 10:55:33AM -0600, Chris wrote:
> On Tuesday 16 March 2004 10:53 am, Chris wrote:
> > On Tuesday 16 March 2004 10:51 am, Brian Henning wrote:
> > > does du return the size in KB by default?
> > > thanks
> >
> > You can try du -h
> > That's listed in man du
>=20
> Sorry - I forgot to answer - Yes

Actually the answer is 'no, but...' -- by default du tells you the
size in disk blocks, ie. multiples of 512b.  However, the standard
/etc/login.conf on FreeBSD causes the environment setting:

    BLOCKSIZE=3DK

to be made, causing all the numbers du outputs (unless told otherwise
on the command line) to appear in kilobytes.  This is all quite
clearly explained in the du(1) man page.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--HlL+5n6rz5pIUxbD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAVzovdtESqEQa7a0RAiTfAJ0X+U6E2y5Ud0wp+y4oAaqJK4onZACbB7DO
PyJIfoMwtrTUFRQaxGfgf+8=
=weg3
-----END PGP SIGNATURE-----

--HlL+5n6rz5pIUxbD--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040316173231.GA60404>