I got my resource completely through here:

http://www.commandlinefu.com/commands/view/12626/diff-two-directories-by-finding-and-comparing-the-md5-checksums-of-their-contents.

First you need md5deep and sort (which comes with every linux, just not the md5deep program):

Which says to check differences like this:

As explained in link the output only tells you if the  the directories differ. Where they differ is hard to tell because the output is just mds.

Here is my script version of the above, called ddiffq, if the output returns nothing, then we know the directories are the same. If the output returns anything then we know there are differences.

Here is my attempt at seeing where they differ, using the script ddiff. The output if they are different is just the md5s, well we can use the md5s to search for the files. That works well, unless multiple versions of that file exist all of the place. So its okay, the best and most reliable output, is to just see if they are truely different, then use other tools to see where they differ (or use the md5s and manually reverse engineer all of the files and figure out where thats different)

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *