mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 19:59:05 +00:00
Update cheatsheets
This commit is contained in:
@@ -22,16 +22,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Read a file of SHA1 checksums and filenames and verify all files have matching checksums:
|
||||
|
||||
`sha1sum --check {{path/to/file.sha1}}`
|
||||
`sha1sum {{[-c|--check]}} {{path/to/file.sha1}}`
|
||||
|
||||
- Only show a message for missing files or when verification fails:
|
||||
|
||||
`sha1sum --check --quiet {{path/to/file.sha1}}`
|
||||
`sha1sum {{[-c|--check]}} --quiet {{path/to/file.sha1}}`
|
||||
|
||||
- Only show a message when verification fails, ignoring missing files:
|
||||
|
||||
`sha1sum --ignore-missing --check --quiet {{path/to/file.sha1}}`
|
||||
`sha1sum --ignore-missing {{[-c|--check]}} --quiet {{path/to/file.sha1}}`
|
||||
|
||||
- Check a known SHA1 checksum of a file:
|
||||
|
||||
`echo {{known_sha1_checksum_of_the_file}} {{path/to/file}} | sha1sum --check`
|
||||
`echo {{known_sha1_checksum_of_the_file}} {{path/to/file}} | sha1sum {{[-c|--check]}}`
|
||||
|
||||
Reference in New Issue
Block a user