Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Compare file occurences between two folders in Linux console
diff -q /backup/today /backup/yesterday

Show which exists only in today, only in yesterday or differ in both

diff -q /backup/today /backup/yesterday | sort

Same as above but sorted

diff -rq /backup/today /backup/yesterday

Same as first line but dives into subdirectories

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.