29 JanCompare 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.

One Response to “Compare Two Directories from the Command Line”

  1. Didn’t know you can compare directories with diff. Thanks for the tip!
    Andrew