md5deep examples
Posted: Mon Jun 27, 2022 9:22 pm
Two basic commands for "a default" usage of "md5deep":
1) Create a recursive hashcode manifest:
2) Validating files against that generated manifest:
Explanation:
It seems that md5deep is able to "find" files in the manifest, as long as their folder/filename is found in the manifest. I haven't tried with duplicate filenames in separate folders though.
Have fun!
1) Create a recursive hashcode manifest:
Code: Select all
$ md5deep -r -e -l . > ~/cam202206.md5deep
- -r: Recursive. Also go into subfolders.
- -e: Show "how long it may take" for each file.
- -l: Output relative file paths (in the manifest).
- .: Current folder = "."
- > ~/cam202206.md5deep: Output the calculated hashes (=manifest) into the given filename.
2) Validating files against that generated manifest:
Code: Select all
$ md5deep -m $MANIFEST -r $FILES
- -m: Enables matching mode. Each matching (=hashcode identical = OK! ) file's name will be printed.
- $MANIFEST: put your previously created md5deep-hashcode-manifest filename here.
- -r: Recursive. Also go into subfolders.
- $FILES: Filename or file-mask of files to validate.
Code: Select all
$ md5deep -m ~/xxx/cam202206.md5deep -r 112XDPHH/*
Have fun!