i have one file which exists in 2 different unix machines. how i can compare the data with in the file
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
You can compare files remotely using ssh:
Or use sshfs/nfs. |
|||||||
|
|
shortest way to figure if they are 'same' could be md5sum file on each box, and compare if md5sums match (or some other sum) if you want to diff them , copy one file over to other box and diff it. |
|||||||
|
|
Remotely? Do you have NFS running? Is the directory containing the file of one of the machines mounted on the other machine? You could check this with " df ". If you don't have NFS or the directory is not mounted you will have to copy the file. You could use " scp " to copy the file. For comparing them use diff or if installed kdiff3 or mgdiff are nice. " diff -y " shows a side by side output. |
|||
|
|