title: compare contents of two directories on remote server using unix
body: <p>I am new to unix and need some help here.
  I have two directories present on two different server. both the directories contains the same files. Now i want to check if all files are in sync in both the directories. If files are not in sync then i want to display only name of those files.
  I am able to do it when directories are on same server. not able to figure out how to do this when directories are present on two different servers.</p>
  
  <pre><code>eg:
  server1 /abc/home/sample1/
  server2 /abc/home/sample2/
  </code></pre>
  
  <p>here i want only files name to display when it not in sync.</p>
  
  <p>Thanks in advance</p>