Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2011 12:39:13 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Alexander Best <arundel@freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: small du(1) question
Message-ID:  <6620A8F5-523D-4A1E-9CC1-9C2D917BF0C2@mac.com>
In-Reply-To: <20111019193413.GA9065@freebsd.org>
References:  <20111019193413.GA9065@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 19, 2011, at 12:34 PM, Alexander Best wrote:
> the du(1) man page states the following:
> 
> "
>     -B blocksize
>             Calculate block counts in blocksize byte blocks.  This is differ-
>             ent from the -k, -m options or setting BLOCKSIZE and gives an
>             estimate of how much space the examined file hierarchy would
>             require on a filesystem with the given blocksize.  Unless in -A
>             mode, blocksize is rounded up to the next multiple of 512.
> "
> 
> is this a doc bug, or does du(1) really always assume that every filesystem's
> blocksize == 512?

The default blocksize is 512 bytes.

The -B option flag lets you tell du to assume a different filesystem blocksize.

Regards,
-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6620A8F5-523D-4A1E-9CC1-9C2D917BF0C2>