Levi LOL

SHASUM Verify File Integrity

If you ever had the need to verify the integrity of all the files in a folder, then you can use the following commands.

Hash files

This command will get the SHA 512 hash for each file in the current directory and write it to the file you specify.

shasum -a 512 * > verify.txt

Verify files

This command will read the contents of the file and verify each file against the SHA 512 hash stored in that file.

shasum -a 512 -c verify.txt