Compare Two Directories from the Command Line
UNIX apparently has a dircmp program that will compare two directories and tell you where they differ. This is useful if you want to ensure that two directories are identical or nearly so. Maybe I’m looking in the wrong places, but I can’t find dircmp for Debian. Instead, I think this works:
diff -r --brief dir1 dir2
Enjoy.

This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
January 29th, 2009 at 7:46 am
Didn’t know you can compare directories with diff. Thanks for the tip!
Andrew