From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 13:15:37 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 A260216A4CE for ; Tue, 16 Mar 2004 13:15:37 -0800 (PST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82C7343D31 for ; Tue, 16 Mar 2004 13:15:37 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.196.44]) by comcast.net (rwcrmhc13) with ESMTP id <2004031621153601500jogdse>; Tue, 16 Mar 2004 21:15:37 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id 128ACE; Tue, 16 Mar 2004 16:15:36 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Henning, Brian" References: From: Lowell Gilbert Date: 16 Mar 2004 16:15:35 -0500 In-Reply-To: Message-ID: <44llm0xzm0.fsf@be-well.ilk.org> Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 21:15:37 -0000 Please don't top-post. "Henning, Brian" writes: > 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? How did you measure it on Windows? I suspect what's happening is that Windows gave you the actual sum of the sizes of all the files, whereas du(1) counts the space *used* by all the files. In other words, the Windows tool is giving a count in bytes, whereas du(1) is giving a count in disk blocks (rounded up to the nearest block, because that space is unavailable for other files to use).