Feb 222011
How to diff two remote files over ssh?
Answer:
Assume you have two files on two different machine, how do you do a diff of them?
Simply use the command below:
# diff <(ssh server_1 'cat foo1') <(ssh server_2 'cat foo2')
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to diff two remote files over ssh?
Answer:
Assume you have two files on two different machine, how do you do a diff of them?
Simply use the command below:
# diff <(ssh server_1 'cat foo1') <(ssh server_2 'cat foo2')