温馨提示:网站使用自适应技术,手机与电脑显示界面不同,电脑界面显示效果更佳。

做了个小站,积累一些技术,分享一些原创
    体会生活,记录一些小随笔,闲说心得

无需工具软件,校验文件MD5、SHA1、SHA256值

原创:张荣国

刚有个朋友问我,他下载了个iso,看网上说要验证sha256值,但是上面说的工具软件,他网上没找到,问我能找到吗。

我听了笑笑的说,验证sha256值还要什么工具软件啊,直接命令行就行了。网上的还真是误导又浪费时间,要下载,要安装,还占用硬盘空间,真奇葩。

那么我说说怎么命令行查询文件MD5、SHA1、SHA256值

Windows 系统下校验文件的SHA256

打开 cmd 窗口,使用certutil命令即可校验文件MD5、SHA1、SHA256:

效验文件的MD5值,如:

在>后面输入: certutil -hashfile D:\windows10_2020.iso MD5

效验文件的sha1值,如:

在>后面输入: certutil -hashfile D:\windows10_2020.iso SHA1

效验文件的sha256值,如:

在>后面输入: certutil -hashfile D:\windows10_2020.iso SHA256

注意:检验时,如果文件比较大,请耐心等一下,完成后就会显示出文件的值,比如说sha256的值出来后,就可以跟原iso提供的sha256值对比了。完全一样,就放心。

Linux系统下校验文件的SHA256值

则使用 md5sum、sha1sum、sha256sum 命令计算文件的校验值;

效验文件的MD5值:

> md5sum ./linux2.tar.gz

效验文件的SHA1值,如:

> sha1sum ./linux2.tar.gz

效验文件的sha256值,如:

> sha256sum ./linux2.tar.gz

其中linux2.tar.gz是文件名

点击数:3105

你可能也喜欢下面相关文章:

9 讨论

  1. www.easyfie.com说道:

    Undeniably believe that which you said. Your favorite justification appeared to
    be on the internet the simplest thing to be aware of.
    I say to you, I definitely get irked while people think about worries that they plainly do
    not know about. You managed to hit the nail upon the top and
    defined out the whole thing without having side effect
    , people could take a signal. Will probably be back to get more.
    Thanks

  2. best cbd gummies说道:

    Hmm is anyone else experiencing problems with the images on this blog loading?
    I’m trying to determine if its a problem on my end or if it’s the blog.
    Any suggestions would be greatly appreciated.

  3. 3chi delta 8 gummies review说道:

    Write more, thats all I have to say. Literally, it seems as
    though you relied on the video to make your point. You clearly know what youre talking about, why throw away
    your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?

  4. buy CBD oil说道:

    Hello There. I found your blog using msn. This is an extremely well written article.
    I will make sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I will certainly return.

  5. download说道:

    You made some respectable points there. I seemed on the web for the issue and found most people will go together with along with your website. Kaylyn Field Kung

  6. yify说道:

    I quite like looking through an article that can make people think. Also, many thanks for allowing for me to comment. Anny My Melva

  7. yify说道:

    I really like and appreciate your blog article. Really looking forward to read more. Awesome. Tommie Paige Harle

  8. web-dl说道:

    Here are a few of the web pages we suggest for our visitors. Con Sauveur Landri

  9. ucretsiz说道:

    If some one needs to be updated with latest technologies after that he must be pay a visit this site and be up to date all the time. Ida Bernarr Mahoney

回复 ucretsiz 取消回复

必填项已用*标注