Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # md5 checksums to recursively compare directories
- # change to the directory so your sums file will not include the file name, in case it is different on the other machine
- cd dirwithfiles
- # build the checksums file
- find . -type f -exec md5sum {} \; > ~/checksums.txt
- #then transfer it to other machine:
- scp ~/checksums.txt user@somewhereelse:
- # then on other machine:
- cd dirwithfiles
- md5sum --quiet -c ~/checksums.txt > ~/badfiles.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement