I downloaded a large file and want to confirm it transferred without corruption. The download page provides an MD5 / SHA256 checksum — how do I compare?
Computing the checksum locally and comparing to the published value
is the standard verification step. Commands per OS:
Linux / macOS terminal:
# MD5
md5sum file.zip # Linux
md5 file.zip # macOS
# SHA256
sha256sum file.zip # Linux
shasum -a 256 file.zip # macOS
Windows PowerShell:
Get-FileHash file.zip -Algorithm MD5
Get-FileHash file.zip -Algorithm SHA256
Compare the output (a long hex string) to the value on the download
page. If they match exactly, the file is intact. If they differ,
re-download — the difference is not normally something you can fix
after the fact.