diff files in two directories Mar 7, 2024 • ulysses Here’s a good way to compare two directories to see if both directories contain similar files. This is essential if you want to combine two directories into one. diff -qr dir1 dir2 | sort