1 Reply Latest reply on Apr 14, 2010 10:33 AM by Dipak Gaigole

    Checksums different but Size (bytes) the same.

    Bill Bruncati

      Same types of servers running Solaris 10. If the full checksums are different ,shouldn't the sizes be too ?




      Graphic_4_14_2010 11_21_25 AM.jpg

        • 1. Re: Checksums different but Size (bytes) the same.
          Dipak Gaigole

          The checksum is computed on the basis of the content of the file, thus it can be different for the files having same size if the file content is different.


          For e.g:


          bash-2.05# echo "hello1" >/tmp/hello1
          bash-2.05# echo "hello2" >/tmp/hello2
          bash-2.05# cksum /tmp/hello*
          1144619315      7       /tmp/hello1
          1179677882      7       /tmp/hello2


          Size of both the files is same (i.e. 7), but there checksum is different.