linux compare two directories for differences code example Example: directory diff diff -qr dir1/ dir2/