Check copied file

Hi all,

If i wanted to copy file within different folders or different servers, how do i determine the copied file is absolutely correct :confused:

Is it using cmp and chksum command enough?
Anyway that i can make further checking?

Thanks in advance for reading & anyone who reply the post. :b:

I guess, MD5Sum checking is fair enough.

You can also try the command "diff".

md5sum checking is enough.

if you want to copy lot of files, in incremental fashion you can give rsync a try.

Thank you all for your reply,

I forget to mention i am using solaris 5.9, is it md5sum a command for higher version of OS? Cause i am getting,
root> man md5sum
No manual entry for md5sum.

Thanks.

on my solaris machine its in /usr/local/bin/md5sum

if you need to download it you can get it from:

x86:
ftp://ftp.sunfreeware.com/pub/freeware/intel/9/md5-6142000-sol9-intel-local.gz

Sparc:
ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/md5-6142000-sol9-sparc-local.gz

use digest command, which is likely to be available already.

Thanks all for your reply.
I think i'll need a few days to study & test on all those commands. Thanks again. :b: