[CentOS] accurate file size

Peter Arremann loony at loonybin.org
Sun Oct 14 21:46:44 UTC 2007

On Sunday 14 October 2007, centos at unixplanet.biz wrote:
> Hello
> I was copying some files from one server to other,
> that I relized the total file size ( sum of all files )
> in one server is a bit more than the one that copied from
> ( about 6 when I do du -s )
You can use dd with the right options:

du --apparent-size  -B 1 

this will count blocks of size 1 byte and take the used size by the files 
rather than the allocated blocks.


More information about the CentOS mailing list