Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Build md5deep to calculate checksums' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Build md5deep to calculate checksums
Authored by: bluehz on Sep 06, '05 11:15:17PM
Couple of examples that might help - these and many more are clearly illustrated here - http://md5deep.sourceforge.net/usage.html Given:
dir1
  file_d1_1
  file_d1_2
  file_d1_3
  file_d1_4
  dir2
    file_d2_2
    file_d2_1

Use this to calculate the checksums of all files in the dir1 (including dir2 contents) and output to a file (hash.md5):

md5deep -lr dir1 > hash.md5

Now given your text file of hashes - you can later compare it against the contents of the dirs to ascertain what has changed:

md5deep -rx hash.md5 dir1

This will print a line of text for every file that DOES not match its original hash. In other words - any file that has changed since the original hash was calculated.

Substitute sha1deep, sha256deep, tigerdeep, or whirlpooldeep for md5deep above as desired to determine specific hashes or calculate specific hashes.


[ Reply to This | # ]