此处为老的 LinuxGem,新版 LinuxGem 请移步

在 Linux 中计算文件的 MD5 与 SHA1

galeki posted @ 2007年10月04日 05:56 in Bash 和它的朋友们 with tags hash sha1 md5 , 9196 阅读

MD5 与 SHA1 是当前最常用的两种哈希算法,主要用来检测下载文件的正确性,计算你下载文件的哈希值,如果和官方公布的哈希值相同,那么可以确定你的下载是正确的。

在 Linux 下如何计算这两种哈希值呢,基本上所有的 Linux 发行版都内置了这两个命令,比如要校检的文件命为 download.iso:

1. 计算文件的 MD5 - md5sum


# md5sum download.iso
b9555cc1915652237948e37ccc9c484e  download.iso

2. 计算文件的 SHA1 - sha1sum



# sha1sum download.iso
bb7d67fb5776c2854edf35ec4a585ff8adc3dbda  download.iso



除了 MD5 和 SHA1 以外,CalcCheckSum 还可以计算多种哈希,并将结果一并显示。只不过 CalcCheckSum 是基于 KDE 的程序。

CalcCheckSum 的主页:

faddy 说:
2022年6月21日 21:24

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. Whisky online UK

great post to read 说:
2022年8月28日 22:49

An intriguing discussion will be worth comment. There’s no doubt that that you need to write much more about this topic, it might not be considered a taboo subject but generally people are inadequate to dicuss on such topics. To the next. Cheers

Imamia Quran Academy 说:
2023年7月19日 19:26

Nicely presented information in this post, I prefer to read this kind of stuff. The quality of content is fine and the conclusion is good. Thanks for the post. I am from Imamia Quran Academy. Imamia Online Shia Academy helps to fulfill this religious obligation by providing Online Shia Classes globally to both kids and adults.


anonymous 说:
2023年9月15日 14:29

On this page, you'll see my profile, please read this information.  Pest Control Kissimmee

anonymous 说:
2023年9月20日 20:03

I came onto your blog while focusing just slightly submits. Nice strategy for next, I will be bookmarking at once seize your complete rises... Pest Control Orlando

anonymous 说:
2023年9月20日 20:05

I prefer merely excellent resources - you will see these people in: Pest Control Oviedo

hkseo 说:
2023年9月23日 16:44

i was just browsing along and came upon your blog. just wanted to say good blog and this article really helped me. Delaware incorporation package

anonymous 说:
2023年10月15日 23:21

I personally use them exclusively high-quality elements : you will notice these folks during: Online Accounting Services

anonymous 说:
2023年10月25日 03:13

Interesting and interesting information can be found on this topic here      profile worth to see it. ball bearings online

anonymous 说:
2023年10月25日 23:14

אצלנו תוכלו להזמין מונית גדולה | מוניות גדולותלהסעות לאירועים, טיולים, הסעות לחתונה לבר מצווה, הסעות לאירועי חברה ומפגשים, הסעות לכנסים, הסעות לנתב"ג.


anonymous 说:
2023年10月26日 16:16

Find the best essays on     is my friend's profile page. assistance apple particuliers Lausanne

anonymous 说:
2024年1月01日 02:05

This content is simply exciting and creative. I have been deciding on a institutional move and this has helped me with one aspect. 카지노사이트 추천

登录 *

loading captcha image...
or Ctrl+Enter