Skip to content

Instantly share code, notes, and snippets.

@mon-compte-github
Created April 4, 2019 18:24
Show Gist options
  • Save mon-compte-github/d6c90ad9114eca42a7adb1c88d1c8569 to your computer and use it in GitHub Desktop.
Save mon-compte-github/d6c90ad9114eca42a7adb1c88d1c8569 to your computer and use it in GitHub Desktop.
Bitwise compare of two directory trees under linux/macos
$ rsync -nrcv /dir1 /dir2

Command line explained :

  • -n is dry run which will actually do nothing to any file
  • -v is verbose so it will print out what it would have done
  • -r is recursive so check every file in every folder and
  • -c is check the checksums when comparing rather than just the size and timestamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment