From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 19:35:05 2009 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 EC17610656D1 for ; Fri, 6 Feb 2009 19:35:05 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id 7A1238FC27 for ; Fri, 6 Feb 2009 19:35:05 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by fk-out-0910.google.com with SMTP id f40so854668fka.11 for ; Fri, 06 Feb 2009 11:35:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JG0LohcZipRTxtU+rYUqASWAwmtiBaT2cIONne5TDRM=; b=urPqhB2EJ6++h0ZVMFLhaZ+sLSLvRtLw/kWMje+FAbgn3MkNuUExEfEBUxlhqiLzsT p1Qch/QPDwPLlIQ5mUuyKtVoRHmuVwASPBsKiRBRp9q2XoUDkbD+AdOHIKCl1FXWxjuV MIBh53KyxFNmVf2xzvdRCJUElxcf52W2H9UCo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=d1su9goku47tIWief8R7E9zmMIfhKR5023V0iq2srByHVdCmqLuK2eOy95dMZ3p4Zt XYMB40M4aHk2HaEs96ngSl6VhrsWHBauB/G4r7Tmg/L/zpY/maN1G65lLCDebhX0bWdj 2wWjekvRDs4q6Tz/U/uVXBf7Y9OFjMd/2iJnA= MIME-Version: 1.0 Received: by 10.223.108.140 with SMTP id f12mr459797fap.23.1233948904477; Fri, 06 Feb 2009 11:35:04 -0800 (PST) In-Reply-To: <4ad871310902061133yfe1f69er5a5c33e934a19058@mail.gmail.com> References: <20090206201317.4e0377b7.nicolas@nicoelro.net> <4ad871310902061133yfe1f69er5a5c33e934a19058@mail.gmail.com> Date: Fri, 6 Feb 2009 14:35:04 -0500 Message-ID: <4ad871310902061135g479ed9abg9a4667593488a3d5@mail.gmail.com> From: Glen Barber To: Nicolas Letellier Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: differences of disk usage between du and quota binaries 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: Fri, 06 Feb 2009 19:35:06 -0000 On Fri, Feb 6, 2009 at 2:33 PM, Glen Barber wrote: > On Fri, Feb 6, 2009 at 2:13 PM, Nicolas Letellier 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