md5sum 命令
2015-12-31 by dongnan
举个栗子
校验 phpmyadmin 语言包文件的 md5 信息
源文件
wget -c https://files.phpmyadmin.net/phpMyAdmin/4.5.3.1/phpMyAdmin-4.5.3.1-all-languages.zip 
wget -c https://files.phpmyadmin.net/phpMyAdmin/4.5.3.1/phpMyAdmin-4.5.3.1-all-languages.zip.md5
校验md5信息
# 执行命令
md5sum -c phpMyAdmin-4.5.3.1-all-languages.zip.md5
# 返回结果
phpMyAdmin-4.5.3.1-all-languages.zip: OK
md5文件内容
# 执行命令
cat phpMyAdmin-4.5.3.1-all-languages.zip.md5
# 返回结果
150a31400970b6f222f0794cec9723cd  phpMyAdmin-4.5.3.1-all-languages.zip
命令帮助
NAME
       md5sum - compute and check MD5 message digest
SYNOPSIS
       md5sum [OPTION]... [FILE]...
DESCRIPTION
       Print or check MD5 (128-bit) checksums.  With no FILE, or when FILE is -, read standard input.
       -b, --binary
              read in binary mode
       -c, --check
              read MD5 sums from the FILEs and check them
       -t, --text
              read in text mode (default)
              Note: There is no difference between binary and text mode option on GNU system.