Re: accurate file size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sunday 14 October 2007, centos@xxxxxxxxxxxxxx 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.

Peter.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux