Skip to content

How to find the differences between two files over SSH

How to find the differences between two files over SSH

Answer:

If the files you want to compare are on different machines, you can combine ssh and diff for the comparsion.

E.g.

ssh john@192.168.11.5 "cat /tmp/foo.txt" | diff - /tmp/bar.txt

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. How to find the differences between two files
  2. How to find the differences between two files (visually)
  3. Compare difference of two files side by side
  4. Compare the difference between two directories
  5. Find files by owner

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*