How to compare two directories (including sub directories) for differences?

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


Solution 1:

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

Solution 2:

I used meld on Ubuntu - it has a good directory comparison option.