From b69896935463e05ac23cda2d8fca6582b99cdf4a Mon Sep 17 00:00:00 2001 From: dotnetCarpenter Date: Mon, 28 Mar 2022 16:21:41 +0200 Subject: [PATCH] b2sum, md5sum, sha*sum: add --ignore-missing example (#7929) --- pages/common/b2sum.md | 16 ++++++++++++---- pages/common/md5sum.md | 16 ++++++++++++---- pages/common/sha1sum.md | 6 +++++- pages/common/sha224sum.md | 6 +++++- pages/common/sha256sum.md | 6 +++++- pages/common/sha384sum.md | 6 +++++- pages/common/sha512sum.md | 6 +++++- 7 files changed, 49 insertions(+), 13 deletions(-) diff --git a/pages/common/b2sum.md b/pages/common/b2sum.md index 8b50ace94..2f38d7519 100644 --- a/pages/common/b2sum.md +++ b/pages/common/b2sum.md @@ -11,10 +11,18 @@ `b2sum {{path/to/file1}} {{path/to/file2}}` -- Read a file of BLAKE2 sums and filenames and verify all files have matching checksums: - -`b2sum -c {{path/to/file.b2}}` - - Calculate the BLAKE2 checksum from stdin: `{{some_command}} | b2sum` + +- Read a file of BLAKE2 sums and filenames and verify all files have matching checksums: + +`b2sum --check {{path/to/file.b2}}` + +- Only show a message for missing files or when verification fails: + +`b2sum --check --quiet {{path/to/file.b2}}` + +- Only show a message for files for which verification fails, ignoring missing files: + +`b2sum --ignore-missing --check --quiet {{path/to/file.b2}}` diff --git a/pages/common/md5sum.md b/pages/common/md5sum.md index 03f222ed1..803f40736 100644 --- a/pages/common/md5sum.md +++ b/pages/common/md5sum.md @@ -11,10 +11,18 @@ `md5sum {{path/to/file1}} {{path/to/filen2}}` -- Read a file of MD5SUMs and verify all files have matching checksums: - -`md5sum -c {{path/to/file.md5}}` - - Calculate a MD5 checksum from the standard input: `echo "{{text}}" | md5sum` + +- Read a file of MD5SUMs and verify all files have matching checksums: + +`md5sum --check {{path/to/file.md5}}` + +- Only show a message for missing files or when verification fails: + +`md5sum --check --quiet {{path/to/file.md5}}` + +- Only show a message for files for which verification fails, ignoring missing files: + +`md5sum --ignore-missing --check --quiet {{path/to/file.md5}}` diff --git a/pages/common/sha1sum.md b/pages/common/sha1sum.md index 0d5b7ecca..35140ded3 100644 --- a/pages/common/sha1sum.md +++ b/pages/common/sha1sum.md @@ -19,6 +19,10 @@ `sha1sum --check {{path/to/file.sha1}}` -- Only show a message for files for which verification fails: +- Only show a message for missing files or when verification fails: `sha1sum --check --quiet {{path/to/file.sha1}}` + +- Only show a message for files for which verification fails, ignoring missing files: + +`sha1sum --ignore-missing --check --quiet {{path/to/file.sha1}}` diff --git a/pages/common/sha224sum.md b/pages/common/sha224sum.md index fd731c4d9..3ac360fec 100644 --- a/pages/common/sha224sum.md +++ b/pages/common/sha224sum.md @@ -19,6 +19,10 @@ `sha224sum --check {{path/to/file.sha224}}` -- Only show a message for files for which verification fails: +- Only show a message for missing files or when verification fails: `sha224sum --check --quiet {{path/to/file.sha224}}` + +- Only show a message for files for which verification fails, ignoring missing files: + +`sha224sum --ignore-missing --check --quiet {{path/to/file.sha224}}` diff --git a/pages/common/sha256sum.md b/pages/common/sha256sum.md index 4b987dd09..ae2cba63c 100644 --- a/pages/common/sha256sum.md +++ b/pages/common/sha256sum.md @@ -19,6 +19,10 @@ `sha256sum --check {{path/to/file.sha256}}` -- Only show a message for files for which verification fails: +- Only show a message for missing files or when verification fails: `sha256sum --check --quiet {{path/to/file.sha256}}` + +- Only show a message for files for which verification fails, ignoring missing files: + +`sha256sum --ignore-missing --check --quiet {{path/to/file.sha256}}` diff --git a/pages/common/sha384sum.md b/pages/common/sha384sum.md index ba4578f34..5d32958d4 100644 --- a/pages/common/sha384sum.md +++ b/pages/common/sha384sum.md @@ -19,6 +19,10 @@ `sha384sum --check {{path/to/file.sha384}}` -- Only show a message for files for which verification fails: +- Only show a message for missing files or when verification fails: `sha384sum --check --quiet {{path/to/file.sha384}}` + +- Only show a message for files for which verification fails, ignoring missing files: + +`sha384sum --ignore-missing --check --quiet {{path/to/file.sha384}}` diff --git a/pages/common/sha512sum.md b/pages/common/sha512sum.md index 7f7e290d8..25f640e81 100644 --- a/pages/common/sha512sum.md +++ b/pages/common/sha512sum.md @@ -19,6 +19,10 @@ `sha512sum --check {{path/to/file.sha512}}` -- Only show a message for files for which verification fails: +- Only show a message for missing files or when verification fails: `sha512sum --check --quiet {{path/to/file.sha512}}` + +- Only show a message for files for which verification fails, ignoring missing files: + +`sha512sum --ignore-missing --check --quiet {{path/to/file.sha512}}`