ubuntu下计算md5

本文介绍了如何在Ubuntu系统中使用MD5sum工具来生成或验证文件的MD5校验和。提供了详细的命令行选项说明及使用场景示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

标签: ubuntu md5 md5sum

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/>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值