compare folders linux 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/