Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2004 12:17:12 -0600
From:      "Henning, Brian" <B.Henning@navitaire.com>
To:        "Matthew Seaman" <m.seaman@infracaninophile.co.uk>, "Chris" <racerx@makeworld.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: du
Message-ID:  <B33A37369985DC47BAAF41511EC48078DF12E8@navmmex112.corp.nt.navitaire.com>

next in thread | raw e-mail | index | archive | help
The only reason why I question it is when I lookup the size in windows
(the directory is shared with samba) I see it as less.
>From bsd: 390     /home/henninb/jpg
>From windows: 372KB windows

Is it because of the share or the change in platform?

thanks

-----Original Message-----
From: Matthew Seaman [mailto:m.seaman@infracaninophile.co.uk]=20
Sent: Tuesday, March 16, 2004 11:33 AM
To: Chris
Cc: freebsd-questions@freebsd.org
Subject: Re: du


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



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