I want to perform a diff between two directories and see what files (if any) have changed. Is there an easy way to do this? I've tried to use diff but it seems to only show the file-content differences.

link|improve this question

possible duplicate of Different files of two directories – Graeme Donaldson Oct 13 '10 at 14:43
feedback

2 Answers

up vote 7 down vote accepted

EDIT: This has been asked and answered before: Different files of two directories. I just typed "diff directory" in the search box, and there it was.

$ diff -r -q DIR1 DIR2

?

$ diff --help
[...]
-q  --brief  Output only whether files differ.
[...]
-r  --recursive  Recursively compare any subdirectories found.
[...]
link|improve this answer
feedback

rsync -n (dry run) will do what you need. check rsync --help output for any other options that you may find useful when searching for changes. i wouldn't use diff to do this.

edit: including example

cia@pinkpony:~$ rsync -nric  dev2/py/lib/sysami/ dev/py/lib/sysami/
>fcsT...... __init__.py
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.