Diff on Linux Directory Tree

To recursively compare files quickly between 2 directories:

diff --brief -r dir1/ dir2/

The “–brief” flag only shows files that differ – not the details of those differences – and the “-r” flag makes the diff recursive.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.