Skip to main content

Comparing two directories files

Simple command for comparing two directories that have the same files and you want to know which files are different from each other:

$ diff -rq directory1 directory2
Files directory1/file1.txt and directory2/file1.txt differ
Files directory1/file3.txt and directory2/file3.txt differ

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.