compare two directories linux code example
Example 1: directory diff
diff -qr dir1/ dir2/
Example 2: how to compare two directories in linux
# -q switch tells diff to report only when files differ
$ diff -q directory-1/ directory-2/
Example 3: ubuntu diff directories
$ sudo apt install meld [Debian/Ubuntu systems]
$ sudo yum install meld [RHEL/CentOS systems]
$ sudo dnf install meld [Fedora 22+]