[clue-tech] ls -l and ls -s reporting different sizes

Charles W Downing chuckdowning at earthlink.net
Mon Nov 3 19:54:10 MST 2008


David,

Using qalculate, I get 65544192/1024/1024 = 62.507 Mb.  Some people 
would round 62.507 up to 63, while an accountant would round down to 62.

Who knows for sure?

David L. Willson wrote:
> I've seen slight differences before, but this is ridiculous!  ls -l and ls -s are reporting dramatically different sizes for this file.  What do you make of this?  How do ls -l and ls -s calculate sizes?
>
> [root at zimbra zimbra]# ls -l ./openldap-data/__db.002
> -rw------- 1 zimbra zimbra 65544192 Oct 27 14:51 ./openldap-data/__db.002
> [root at zimbra zimbra]# ls -s ./openldap-data/__db.002
> 1276 ./openldap-data/__db.002
> [root at zimbra zimbra]# ls -lh ./openldap-data/__db.002
> -rw------- 1 zimbra zimbra 63M Oct 27 14:51 ./openldap-data/__db.002
> [root at zimbra zimbra]# ls -sh ./openldap-data/__db.002
> 1.3M ./openldap-data/__db.002
> [root at zimbra zimbra]# 
> _______________________________________________
> clue-tech mailing list
> clue-tech at cluedenver.org
> http://www.cluedenver.org/mailman/listinfo/clue-tech
>
>   

-- 
Chuck Downing
Highlands Ranch, Colorado USA 



More information about the clue-tech mailing list