differences of disk usage between du and quota binaries

Glen Barber glen.j.barber at gmail.com
Fri Feb 6 11:35:06 PST 2009


On Fri, Feb 6, 2009 at 2:33 PM, Glen Barber <glen.j.barber at gmail.com> wrote:
> On Fri, Feb 6, 2009 at 2:13 PM, Nicolas Letellier <nicolas at 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 at 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


More information about the freebsd-questions mailing list