From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 17:44:09 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91C4216A418 for ; Wed, 8 Aug 2007 17:44:09 +0000 (UTC) (envelope-from web@3dresearch.com) Received: from smtp.3dresearch.com (dorabella.3dresearch.com [66.167.251.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5F52213C442 for ; Wed, 8 Aug 2007 17:44:09 +0000 (UTC) (envelope-from web@3dresearch.com) Received: by smtp.3dresearch.com (Postfix, from userid 33) id B297F4B4B0; Wed, 8 Aug 2007 13:44:08 -0400 (EDT) To: freebsd-questions@freebsd.org Received: from 71.61.128.39 (auth. user janos@imap.3dresearch.com) by vmail.3dresearch.com with HTTP; Wed, 08 Aug 2007 12:44:08 -0500 X-IlohaMail-Blah: janos@imap.3dresearch.com X-IlohaMail-Method: mail() [mem] X-IlohaMail-Dummy: moo X-Mailer: IlohaMail/0.8.14 (On: vmail.3dresearch.com) Message-ID: In-Reply-To: <30A24FEB-0E6F-4C50-BC1F-2808C216AA11@mac.com> From: "Janos Dohanics" Bounce-To: "Janos Dohanics" Errors-To: "Janos Dohanics" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: Wed, 8 Aug 2007 13:44:08 -0400 (EDT) Subject: Re: What is my disk usage? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2007 17:44:09 -0000 On 8/8/2007, "Chuck Swiger" wrote: >On Aug 8, 2007, at 9:21 AM, Janos Dohanics wrote: >> du is acting strange on my system: >> >> # du /usr/X11R6 >> 4 /usr/X11R6/share/locale >> 8 /usr/X11R6/share >> 12 /usr/X11R6 >> >> # du -h /usr/X11R6 >> 2.0K /usr/X11R6/share/locale >> 4.0K /usr/X11R6/share >> 6.0K /usr/X11R6 >> >> # du -k /usr/X11R6 >> 2 /usr/X11R6/share/locale >> 4 /usr/X11R6/share >> 6 /usr/X11R6 >> >> This seems to be happening only after I have sudo'd myself. du reports >> consistent numbers if I run it as myself or if I su first. >> >> This is a FreeBSD 6.2-STABLE system with snapshots enabled. >> >> Any ideas? > >Presumably the accounts which have consistent results have something >like: > > setenv BLOCKSIZE K > >...or: > > export BLOCKSIZE=3DK > >...configured in their shell. > >-- >-Chuck Well, this is all I have in .bash_profile: $ cat .bash_profile PS1=3D"[\u@\h \w]\\$ " export EDITOR=3Dvim The issue is that du reports twice as much disk usage as du -h or du -k, and I have no clue why...