shasum
Calculate SHA cryptographic checksums. More information: <https://manned.org/shasum>.
Install
- All systems
-
curl cmd.cat/shasum.sh
- Debian
-
apt-get install libdigest-sha-perl
- Ubuntu
-
apt-get install libdigest-sha-perl
- Alpine
-
apk add perl
- Arch Linux
-
pacman -S perl
- Kali Linux
-
apt-get install libdigest-sha-perl
- Fedora
-
dnf install perl-Digest-SHA-1
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install libdigest-sha-perl
- OS X
-
brew install perl
- Raspbian
-
apt-get install libdigest-sha-perl
- Dockerfile
- dockerfile.run/shasum
- Docker
-
docker run cmd.cat/shasum shasum
powered by Commando
Calculate SHA cryptographic checksums. More information: <https://manned.org/shasum>.
-
Calculate the SHA1 checksum for one or more files:
shasum path/to/file1 path/to/file2 ...
-
Calculate the SHA256 checksum for one or more files:
shasum --algorithm 256 path/to/file1 path/to/file2 ...
-
Calculate the SHA512 checksum for one or more files:
shasum --algorithm 512 path/to/file1 path/to/file2 ...
-
Calculate a SHA1 checksum from `stdin`:
command | shasum
-
Calculate and save the list of SHA256 checksums to a file:
shasum --algorithm 256 path/to/file1 path/to/file2 ... > path/to/file.sha256
-
Read a file of SHA1 sums and filenames and verify all files have matching checksums:
shasum --check path/to/file
-
Only show a message for missing files or when verification fails:
shasum --check --quiet path/to/file
-
Only show a message when verification fails, ignoring missing files:
shasum --ignore-missing --check --quiet path/to/file
© tl;dr; authors and contributors