SHA256SUM(1)
β¨ sha256sum β bestie we're doing CHECKSUMS today β¨
okay so you found the sha256sum page in the manual (General Commands Manual, that's her house π ) and honestly? iconic. this is the tool that tells you whether a file is exactly the file you think it is. math says so. periodt. π
πΈ NAME πΈ
sha256sum β print or check the SHA256 checksums π
π¦ SYNOPSIS π¦
sha256sum [OPTIONS] [FILE]...
β¨ DESCRIPTION β¨
Print or check the SHA256 checksums. that's the whole job, no cap π«Ά
π OPTIONS π
-c,--checkβ read checksums from the FILEs and check them. the "am i being lied to" mode π-w,--warnβ warn about improperly formatted checksum lines. she will absolutely say something π--statusβ don't output anything, status code shows success. silent but the vibe is in the exit code--quietβ don't print OK for each successfully verified file. only the drama gets airtime β¨--ignore-missingβ don't fail or report status for missing files. she's being chill--strictβ exit non-zero for improperly formatted checksum lines. no mercy, stern queen π--tagβ create a BSD style checksum-z,--zeroβ end each output line withNUL, not newline, and disable file name escaping. zero as in the byte, not as in "nothing" π«Ά-h,--helpβ Print help-V,--versionβ Print version
β VERSION β
v(uutils coreutils) 0.12.0
π EXAMPLES π
calculate the SHA256 checksum for one or more files:
sha256sum path/to/file1 path/to/file2 ...
calculate and save the list of SHA256 checksums to a file:
sha256sum path/to/file1 path/to/file2 ... > path/to/file.sha256
calculate a SHA256 checksum from stdin:
command | sha256sum
read a file of SHA256 checksums and filenames and verify all files have matching checksums:
sha256sum [-c|--check] path/to/file.sha256
only show a message for missing files or when verification fails:
sha256sum [-c|--check] --quiet path/to/file.sha256
only show a message when verification fails, ignoring missing files:
sha256sum --ignore-missing [-c|--check] --quiet path/to/file.sha256
check a known SHA256 checksum of a file:
echo known_sha256_checksum_of_the_file path/to/file | sha256sum
[-c|--check]
the examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. π₯² (not me reminding you twice β it's just the truth bestie)
and that's the whole page, fr fr π this one shipped on 2026-09-25 as part of the sha256sum(1) manual, so if you're reading it way later, hey, hi, still valid. go verify something. slay. ππ¦π
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms