I have two directories with the same list of files. I need to compare all the files present in both the directories using the diff command. Is there a simple co
diff
If you are only interested to see the files that differ, you may use:
diff -qr dir_one dir_two | sort
Option "q" will only show the files that differ but not the content that differ, and "sort" will arrange the output alphabetically.