How do I verify a file’s SHA checksum in one line using built-in tools?
Open a terminal, cd to the directory that includes the file and it’s seperate hash-file then: shasum -c hash-file That’s it. The hashfile is just the text file in the form “hash<double-space>filename”. Like this alpine linux sha256 checksum file. If the hash is available as a link you can curl and pipe it into shasum -c. cd <dir that contains file to verify> curl -s https://dl-cdn.alpinelinux.org/alpine/v3.15/releases/x86_64/alpine-standard-3.15.0-x86_64.iso.sha256 | shasum -c