2

Linux常用命令-98:md5sum

 1 year ago
source link: https://xugaoxiang.com/2022/09/07/linux-cmds-98-md5sum/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

md5sum 命令用于生成和校验文件的 md5 值,会对文件的内容进行逐位校验,因此和文件名无关。

md5 的全称是 md5 信息摘要算法 (MD5 Message-Digest Algorithm,一种被广泛使用的密码散列函数,可以产生一个128位,共16字节的散列值,实际使用中通常是32位的16进数,比如:3caa3b23bada53f9e4e041d95dc8fa98,主要用于确保信息传输的完整性和一致性。

语法格式:md5sum [参数] [文件]

常用参数:

c2c560d8c84894f0.png
# 计算test.zip的md5
md5sum test.zip

604d5f8d212da085.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK