Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jan 052010

How to find the differences between two files over SSH


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


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

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>