How can I compare two directories with sub dirs to see where is the difference?

link|improve this question

70% accept rate
5  
Operating System please. – mh. Feb 9 '10 at 15:22
Are you wanting to know if there are different files between the two directories or if the contents of the files are different? – Matt Simmons Feb 9 '10 at 17:19
feedback

4 Answers

up vote 10 down vote accepted

Under Linux:

$ diff -r /first/directory /second/directory

Under Windows: you'd probably better download and install WinMerge, then

> WinMerge /r c:\first\folder c:\second\folder

M

link|improve this answer
1  
I use diff -qrl now... – alexus Aug 10 '11 at 19:28
feedback

Beyond Compare is a good commercial tool, $30 or so. Runs under windows, has an eval version. http://www.scootersoftware.com/

link|improve this answer
feedback

On Windows, I believe windiff does it, however Winmerge is my tool of choice for this job. It's open source and does a very neat job of comparing two sets of directory trees.

edit: oops, was beaten to it by Marius

link|improve this answer
feedback

DiffMerge for Windows shows differences including subfolders in a window. There is also a portable version somewhere but a quick search revealed this download: http://www.softpedia.com/get/System/File-Management/SourceGear-DiffMerge.shtml

Greetz, GHad

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.