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!