blj28

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

md5sum 查看文件校验码,确认是否为同一个文件

复制代码
root@blj-pc:xxxxxx# md5sum --help
用法:md5sum [选项]... [文件]...
显示或检查 MD5(128位)校验和。

如果没有指定文件,或者文件为"-",则从标准输入读取。

-b, --binary 以二进制模式读取
-c, --check 从文件中读取MD5 的校验值并予以检查
--tag 创建一个 BSD 风格的校验和
-t, --text 以纯文本模式读取(默认)
-z, --zero 以 NUL 空字符而非换行符结束每一输出行,
同时禁用文件名转义

以下五个选项在进行校验时非常有用:
--ignore-missing 不要为缺失的文件进行报告或者返回失败状态
--quiet 不为校验成功的文件输出 OK
--status 不输出任何内容,使用退出状态号显示成功
--strict 为格式不准确的校验和行返回非零状态
-w, --warn 对格式不准确的校验和行进行警告

--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 space, a character indicating input mode ('*' for binary,
' ' for text or where binary is insignificant), and name for each FILE.

GNU coreutils 在线帮助:<https://www.gnu.org/software/coreutils/>
请向 <http://translationproject.org/team/zh_CN.html> 报告 md5sum 的翻译错误
完整文档请见:<https://www.gnu.org/software/coreutils/md5sum>
或者在本地使用:info '(coreutils) md5sum invocation'

root@blj-pc:   # md5sum -b *
1ea5d941e8424f19ffbaf1991de72c07 *libXXX2_1.1.2.0.so
8f7e03c2d371957fbcf38db35160aadf *Makefile
root@blj-pc:/Linux# md5sum *
1ea5d941e8424f19ffbaf1991de72c07 lib2_1.1.2.0.so
8f7e03c2d371957fbcf38db35160aadf Makefile

 
复制代码

 

posted on   bailinjun  阅读(73)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
点击右上角即可分享
微信分享提示