Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2007 10:32:45 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Janos Dohanics <web@3dresearch.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: What is my disk usage?
Message-ID:  <30A24FEB-0E6F-4C50-BC1F-2808C216AA11@mac.com>
In-Reply-To: <c5acAmmM.1186590118.4553350.janos@imap.3dresearch.com>
References:  <c5acAmmM.1186590118.4553350.janos@imap.3dresearch.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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=K

...configured in their shell.

-- 
-Chuck




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?30A24FEB-0E6F-4C50-BC1F-2808C216AA11>