From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 10:18:49 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 3CCBD16A4CE for ; Tue, 16 Mar 2004 10:18:49 -0800 (PST) Received: from mail.navitaire.com (unknown [192.216.212.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id D67E443D39 for ; Tue, 16 Mar 2004 10:18:46 -0800 (PST) (envelope-from B.Henning@navitaire.com) Received: from navmmtl112.corp.nt.navitaire.com (navmmtl112.navitaire.com [149.122.40.8]) by mail.navitaire.com (8.12.9/8.12.9) with ESMTP id i2GIIjjJ007224; Tue, 16 Mar 2004 12:18:46 -0600 (CST) Received: from NAVMMEX112.corp.nt.navitaire.com ([149.122.40.50]) by navmmtl112.corp.nt.navitaire.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 16 Mar 2004 12:18:45 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 16 Mar 2004 12:17:12 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: du Thread-Index: AcQLfL5Fk/6tsqCBROiA/rbHIMdP4QABcjxg From: "Henning, Brian" To: "Matthew Seaman" , "Chris" X-OriginalArrivalTime: 16 Mar 2004 18:18:45.0527 (UTC) FILETIME=[1E9A5A70:01C40B83] 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 18:18:49 -0000 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