From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 17:32:47 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 1A87516A419 for ; Wed, 8 Aug 2007 17:32:47 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 031A513C457 for ; Wed, 8 Aug 2007 17:32:46 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay6.apple.com (relay6.apple.com [17.128.113.36]) by mail-out3.apple.com (Postfix) with ESMTP id E6F72DE077F; Wed, 8 Aug 2007 10:32:46 -0700 (PDT) Received: from relay6.apple.com (unknown [127.0.0.1]) by relay6.apple.com (Symantec Mail Security) with ESMTP id C5487100D4; Wed, 8 Aug 2007 10:32:46 -0700 (PDT) X-AuditID: 11807124-a7fbdbb0000007f3-24-46b9fe3e9b07 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay6.apple.com (Apple SCV relay) with ESMTP id B073410097; Wed, 8 Aug 2007 10:32:46 -0700 (PDT) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <30A24FEB-0E6F-4C50-BC1F-2808C216AA11@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Wed, 8 Aug 2007 10:32:45 -0700 To: Janos Dohanics X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org 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:32:47 -0000 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