Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

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.

share|improve this question

marked as duplicate by mattdm, Stefan Lasiewski, Michael Hampton, Tom O'Connor, mdpc Feb 13 '13 at 0:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers 3

up vote 13 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 -rq DIR1 DIR2

Here are the details:

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

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
share|improve this answer

You can use a graphical difference tool such as:

  • KDiff
  • Meld
  • GTKDiff
  • Kompare
  • etc.

Just type "diff" in your package manager.

share|improve this answer

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