compare two directories linux and files with same name 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/