It wasn't me. You can't prove anything.


2015-03-13

How to use sha512sum command example

Create hash file
$ sha512sum ABC\ Notes.odt > test.sha512


Remember, the name of the file ABC Notes.odt is stored in the test.sha512 file. The file may not be renamed. Changing the data in the hash fill will not work.


Check hash file. You must be in the same folder as the file to be checked ABC Notes.odt in this case.
$ sha512sum -c test.sha512
ABC Notes.odt: OK


Check using an echo of the hash file.
$ cat test.sha512 | sha512sum -c -
ABC Notes.odt: OK


Check using the file that was created above and just echoing it to the command line.
$ cat test.sha512
c4d28256984e0fc6cc645ee184a49fbd9efc07d29a07bf43baab07deeac21f255a3796c6d04132a86a141847d118a3e0bf729681ad7910ae2d8e99fec1327430  ABC Notes.odt
$ echo "c4d28256984e0fc6cc645ee184a49fbd9efc07d29a07bf43baab07deeac21f255a3796c6d04132a86a141847d118a3e0bf729681ad7910ae2d8e99fec1327430  ABC Notes.odt" | sha512sum -c -
ABC Notes.odt: OK

No comments: