linux compare 2 directories and list differences code example
Example: how to compare two directories in linux
# -q switch tells diff to report only when files differ
$ diff -q directory-1/ directory-2/
# -q switch tells diff to report only when files differ
$ diff -q directory-1/ directory-2/