Linux / Unix: Comparing differences between folders

By | 22nd November 2021

I had to check the file changes between two Backintime snapshots recently. You can always use rsync for that, but there is a more straightforward way by using diff.

$ diff -qr directoyr-1/ directory-2/

-q will display only the files that differ.

-r will make the comparison recursive.

There is a GUI application called Meld that provides similar functionality, but the diff approach will work anywhere and requires memorising less flags than rsync.

image_printPrint this page

Leave a Reply

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