how to compare the contents of two directories in linux code example Example: directory diff diff -qr dir1/ dir2/