du

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue Mar 16 09:32:38 PST 2004


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
> 
> 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=K

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

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040316/b2b53e01/attachment.bin


More information about the freebsd-questions mailing list