Name
md5sum
Synopsis
md5sum [options
] [file
...] md5sum [options
]--check
[file
]
Compute or check the MD5 algorithm checksum for one or more files. The checksum is computed using the algorithm in RFC 1321. Use the saved output of the program as input when checking. See also sha1sum.
Options
-b
,--binary
Use binary mode to read files. This is the default on non-Unix systems.
-c
,--check
Check MD5 sums against the given list.
-
--status
Do not print anything. Instead, use the exit code to indicate success.
-t
,--text
Read files in “text” mode. This is the default on Unix systems.
-w
,--warn
Warn about checksum lines that are not formatted correctly.
Examples
$md5sum bash-3.0.tar.gz > MD5SUM
Compute and save checksum $cat MD5SUM
Show it 26c4d642e29b3533d8d754995bc277b3 bash-3.0.tar.gz $md5sum --check < MD5SUM
Verify it bash-3.0.tar.gz: OK
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.