Back to the command reference

md5sum

FilesFundamentals In simulator In real Linux

Compute or check MD5 checksums

Name: md5sum = MD5 checksum

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

Description

md5sum computes a file's 128-bit MD5 digest, or with -c checks files against recorded digests, typically to confirm a download or copy isn't corrupted.

MD5 is no longer secure against deliberate tampering; use sha256sum when security matters.

Syntax

md5sum [OPTION]... [FILE]...

Common options

-c / --checkRead sums from a file and check them
--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

  • $ md5sum ubuntu.iso

    MD5 of a file

    Explain
  • $ md5sum -c checksums.md5

    Verify downloaded files

    Explain

Related