Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2009 14:35:04 -0500
From:      Glen Barber <glen.j.barber@gmail.com>
To:        Nicolas Letellier <nicolas@nicoelro.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: differences of disk usage between du and quota binaries
Message-ID:  <4ad871310902061135g479ed9abg9a4667593488a3d5@mail.gmail.com>
In-Reply-To: <4ad871310902061133yfe1f69er5a5c33e934a19058@mail.gmail.com>
References:  <20090206201317.4e0377b7.nicolas@nicoelro.net> <4ad871310902061133yfe1f69er5a5c33e934a19058@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, Feb 6, 2009 at 2:33 PM, Glen Barber <glen.j.barber@gmail.com> wrote:
> On Fri, Feb 6, 2009 at 2:13 PM, Nicolas Letellier <nicolas@nicoelro.net> wrote:
>> Hello.
>>
>> I use FreeBSD 6.3. I set quota to my fs.
>> But, when I print disk usage with du -sh, I have:
>>
>> root@domain sites $  du -sh folder
>> 633M    folder
>>
>> But, when I print disk usage with quota -u user, I have:
>>
>> isk quotas for user user (uid 2002):
>>     Filesystem   usage   quota   limit   grace   files   quota   limit   grace
>>           /var  648264  700000  700000            2963       0       0
>>
>>
>> Why this difference? (633M against 648264)
>>
>
> Because 633Mb is 648264 (roughly) bytes.  (648264 / 1024)
>
> Regards,
>
Well, I never really answered the 'why' part of your question -- the
'-h' flag prints 'human readable' output -- ie, in MB instead of
bytes.

-- 
Glen Barber



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4ad871310902061135g479ed9abg9a4667593488a3d5>