Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kkamin

macrumors member
Original poster
Mar 24, 2009
78
1
I can't find a third party app to create a MD5 checksum of folders and subfolders. The closest I got was checksum+, but the programs doesn't handle large folders; it freezes.

So I would like to go into Terminal and do it manually. Can someone share the command line to create:

•a MD5 checksum of a folder and its subfolders and output it to a txt file.

•a way then to use that outputted text file for file verification. My initial thinking is that I would have to create another MD5 checksum of the copied folder and then use a difference type command to compare the text files?

Thanks for reading. Any help is appreciated.
 
Something like this?

Code:
find . -type f -print0 | xargs -0 md5 > before
# later...
find . -type f -print0 | xargs -0 md5 > after
diff before after
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.