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 [email protected] "cat /tmp/foo.txt" | diff - /tmp/bar.txt
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 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 [email protected] "cat /tmp/foo.txt" | diff - /tmp/bar.txt
How to find the differences between two files
Answer:
Use the diff command
E.g.
diff foo.txt bar.txt