Back to the command reference

sha256sum

FilesFundamentals In simulator In real Linux

Compute or check SHA-256 checksums

Name: sha256sum = SHA-256 checksum

You can practise it right away in the simulator, and use it in real Linux mode too.

Description

sha256sum computes SHA-256 digests or checks them with -c. Software releases usually publish SHA-256 sums; compare them after downloading to make sure the file is complete and untouched.

Syntax

sha256sum [OPTION]... [FILE]...

Common options

-c / --checkCheck sums from a file
--quietWith -c: print only the files that fail
--statusWith -c: print nothing; the exit status says it
--ignore-missingWith -c: skip files that are missing

Examples

  • $ sha256sum ubuntu.iso

    Compare with the published value

    Explain
  • $ sha256sum -c SHA256SUMS

    Check a list of files

    Explain

Related