1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 00:53:08 +02:00

sha*sum: add example about the creation of a list of checksums

This commit is contained in:
Andrea 2020-12-18 15:14:04 +01:00 committed by Starbeamrainbowlabs
parent 45d36431de
commit 7076fe8a9c
6 changed files with 24 additions and 0 deletions

View file

@ -10,6 +10,10 @@
`sha1sum {{filename1}} {{filename2}}` `sha1sum {{filename1}} {{filename2}}`
- Calculate and save the list of SHA1 checksums to a file
`sha256sum {{filename1}} {{filename2}} > {{filename.sha1}}`
- Read a file of SHA1 sums and verify all files have matching checksums: - Read a file of SHA1 sums and verify all files have matching checksums:
`sha1sum --check {{filename.sha1}}` `sha1sum --check {{filename.sha1}}`

View file

@ -10,6 +10,10 @@
`sha224sum {{filename1}} {{filename2}}` `sha224sum {{filename1}} {{filename2}}`
- Calculate and save the list of SHA224 checksums to a file
`sha256sum {{filename1}} {{filename2}} > {{filename.sha224}}`
- Read a file of SHA224 sums and verify all files have matching checksums: - Read a file of SHA224 sums and verify all files have matching checksums:
`sha224sum --check {{filename.sha224}}` `sha224sum --check {{filename.sha224}}`

View file

@ -10,6 +10,10 @@
`sha256sum {{filename1}} {{filename2}}` `sha256sum {{filename1}} {{filename2}}`
- Calculate and save the list of SHA256 checksums to a file
`sha256sum {{filename1}} {{filename2}} > {{filename.sha256}}`
- Read a file of SHA256 sums and verify all files have matching checksums: - Read a file of SHA256 sums and verify all files have matching checksums:
`sha256sum --check {{filename.sha256}}` `sha256sum --check {{filename.sha256}}`

View file

@ -10,6 +10,10 @@
`sha384sum {{filename1}} {{filename2}}` `sha384sum {{filename1}} {{filename2}}`
- Calculate and save the list of SHA384 checksums to a file
`sha256sum {{filename1}} {{filename2}} > {{filename.sha384}}`
- Read a file of SHA384 sums and verify all files have matching checksums: - Read a file of SHA384 sums and verify all files have matching checksums:
`sha384sum --check {{filename.sha384}}` `sha384sum --check {{filename.sha384}}`

View file

@ -10,6 +10,10 @@
`sha512sum {{filename1}} {{filename2}}` `sha512sum {{filename1}} {{filename2}}`
- Calculate and save the list of SHA512 checksums to a file
`sha256sum {{filename1}} {{filename2}} > {{filename.sha512}}`
- Read a file of SHA512 sums and verify all files have matching checksums: - Read a file of SHA512 sums and verify all files have matching checksums:
`sha512sum --check {{filename.sha512}}` `sha512sum --check {{filename.sha512}}`

View file

@ -14,6 +14,10 @@
`shasum --algorithm 512 {{filename1}} {{filename2}}` `shasum --algorithm 512 {{filename1}} {{filename2}}`
- Calculate and save the list of SHA256 checksums to a file
`shasum --algorithm 256 {{filename1}} {{filename2}} > {{filename.sha256}}`
- Check a file with a list of sums against the directory's files: - Check a file with a list of sums against the directory's files:
`shasum --check {{list_file}}` `shasum --check {{list_file}}`