ubuntu下计算md5

来源:互联网 发布:2016淘宝返利网排名 编辑:程序博客网 时间:2024/05/22 16:05
标签:ubuntumd5md5sum
转自:http://yaodh.blog.51cto.com/1462667/329748

ubuntu默认安装md5sum

使用方法:md5sum  文件名

用法:md5sum [选项]... [文件]...


显示或检查 MD5(128-bit) 校验和。


若没有文件选项,或者文件处为"-",则从标准输入读取。



  -b, --binary        以二进制模式读取


  -c, --check             read MD5 sums from the FILEs and check them


  -t, --text              read in text mode (default)



The following three options are useful only when verifying checksums:


      --quiet             don't print OK for each successfully verified file


      --status            don't output anything, status code shows success


  -w, --warn              warn about improperly formatted checksum lines



      --help     显示此帮助信息并退出


      --version  输出版本信息并退出



The sums are computed as described in RFC 1321.  When checking, the input


should be a former output of this program.  The default mode is to print


a line with checksum, a character indicating type (`*' for binary, ` ' for


text), and name for each FILE.



请向bug-coreutils@gnu.org 报告md5sum 的错误


GNU coreutils home page: <http://www.gnu.org/software/coreutils/>


General help using GNU software: <http://www.gnu.org/gethelp/>


Report md5sum translation bugs to <http://translationproject.org/team/>