Linux Pipelines, xargs, split, diff, and Practical Recipes Cheat Sheet/Compare directories recursively
Find differences across two directory trees.
Section: diff, cmp, and patch-Oriented Comparison
Compare directories recursively
bash
bash
diff -ruN dir1 dir2Explanation
A common way to inspect configuration or source tree differences.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing diff, cmp, and patch-Oriented Comparison