From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 09:32:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61A6516A4CE for ; Tue, 16 Mar 2004 09:32:38 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E966C43D2D for ; Tue, 16 Mar 2004 09:32:36 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i2GHWV9B013976 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Mar 2004 17:32:31 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2GHWVYb013946; Tue, 16 Mar 2004 17:32:31 GMT (envelope-from matthew) Date: Tue, 16 Mar 2004 17:32:31 +0000 From: Matthew Seaman To: Chris Message-ID: <20040316173231.GA60404@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Chris , freebsd-questions@freebsd.org References: <200403161053.46311.racerx@makeworld.com> <200403161055.33013.racerx@makeworld.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: <200403161055.33013.racerx@makeworld.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040304, clamav-milter version 0.67j cc: freebsd-questions@freebsd.org Subject: Re: du X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 17:32:38 -0000 --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--