Diff 2 Folders Over SSH
May 19, 2023 —
Gregg Szumowski
If you need to do a 'diff' on 2 folders and one of them is remote then you can accomplish that as follows:
$ diff <(ssh [email protected] ls -R /home/username/dir1) <(ls -R /home/username/dir2)