
ssh:ai:f25c4
diff two directories on two different machines over ssh show only differences
$ ssh user@remote_host 'diff -rq directory1 directory2'
try on your machine
This command will SSH into the remote_host as the user specified, then it will use the diff command to recursively compare the contents of directory1 and directory2, showing only the differences.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- diff two directories on two different machines over ssh show only differences?