tldr/pages/osx/md5.md

352 B

md5

Calculate MD5 cryptographic checksums.

  • Print MD5 checksum for a file:

md5 {{filename}}

  • Print MD5 checksum for each file in a list or directory:

md5 {{filename1}} {{filename2}} md5 {{directory/\*}}

  • Output only the md5 checksum (no filename):

md5 -q {{filename}}

  • Print a checksum of the given string:

md5 -s {{string}}