diff options
author | implicitfield <114500360+implicitfield@users.noreply.github.com> | 2022-10-06 17:29:05 +0300 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-10-12 12:01:40 -0600 |
commit | 480e517f03519fde6e1f0c589cec6959d480ce96 (patch) | |
tree | f9644bd98c5fc5b7024fa8b5ff84b45b2de70c0b /Base/usr/share/man/man1/checksum.md | |
parent | 340a2a96a4252998c53fe93b2f111399d4d9202f (diff) | |
download | serenity-480e517f03519fde6e1f0c589cec6959d480ce96.zip |
checksum: Support the '--check' option
This commit also updates 'checksum' to use the Core::Stream::File API.
Diffstat (limited to 'Base/usr/share/man/man1/checksum.md')
-rw-r--r-- | Base/usr/share/man/man1/checksum.md | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Base/usr/share/man/man1/checksum.md b/Base/usr/share/man/man1/checksum.md index 14f27bda03..befa8cfeab 100644 --- a/Base/usr/share/man/man1/checksum.md +++ b/Base/usr/share/man/man1/checksum.md @@ -4,12 +4,18 @@ checksum - helper program for calculating checksums ## Synopsis -`$ md5sum <file>` -`$ sha1sum <file>` -`$ sha256sum <file>` -`$ sha512sum <file>` +`$ md5sum [options...] <file...>` +`$ sha1sum [options...] <file...>` +`$ sha256sum [options...] <file...>` +`$ sha512sum [options...] <file...>` ## Description This program calculates and print specified checksum of files. It cannot be run directly, only -as `md5sum`, `sha1sum`, `sha256sum` or `sha512sum`. +as `md5sum`, `sha1sum`, `sha256sum` or `sha512sum`. A non-zero exit code is returned if the +input cannot be read. If the '--check' option is used, a non-zero exit code is also returned +if the checksums cannot be verified. + +## Options + +* `-c`, `--check`: Verify checksums against `file` or stdin. |