当前位置: 首页 > news >正文

Ubuntu: how to md5sum (适用macOS)

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

Cyper注: sha256sum和md5sum用法一样, mac上将md5sum替换md5命令即可, 用法一样

First of all, what is md5 ?

MD5 is an algorithm that is used to verify data integrity through the creation of a 128-bit message digest from data input (which may be a message of any length) that is claimed to be as unique to that specific data as a fingerprint is to the specific individual. MD5, which was developed by Professor Ronald L. Rivest of MIT, is intended for use with digital signature applications, which require that large files must be compressed by a secure method before being encrypted with a secret key, under a public key cryptosystem. MD5 is currently a standard, Internet Engineering Task Force (IETF) Request for Comments (RFC) 1321.

Okay this definition is extracted from http://searchsecurity.techtarget.com

Simple Usage, we use md5 to verify the correctness of something we have downloaded. You always provided with md5 fingerprint while downloading large file such as iso images for linux distro. It is just a line of 128 bit string.

Why I need to do the checking? Is it important?

To ensure the file you downloaded is not corrupted. Yes, it is important. If you try to burn the iso that is corrupted to CD, the CD may not work properly.

How to check?

Uses md5sum, the simple way is run the command line straight away. Let say you want to check the file ubuntu-6.10-desktop-i386.iso.

md5sum ubuntu-6.10-desktop-i386.iso

With this, it prints out the 128 bit fingerprint strings. Tally the string you obtained with the provided one. Provider do the same way to obtain this string and publish to the site.

Another way let say you have more files to verify, you can create a text file, such as md5sum.txt

283158c7da8c0ada74502794fa8745eb  ubuntu-6.10-alternate-amd64.iso
549ef19097b10ac9237c08f6dc6084c6  ubuntu-6.10-alternate-i386.iso
5717dd795bfd74edc2e9e81d37394349  ubuntu-6.10-alternate-powerpc.iso
99c3a849f6e9a0d143f057433c7f4d84  ubuntu-6.10-desktop-amd64.iso
b950a4d7cf3151e5f213843e2ad77fe3  ubuntu-6.10-desktop-i386.iso
a3494ff33a3e5db83669df5268850a01  ubuntu-6.10-desktop-powerpc.iso
2f44a48a9f5b4f1dff36b63fc2115f40  ubuntu-6.10-server-amd64.iso
cd6c09ff8f9c72a19d0c3dced4b31b3a  ubuntu-6.10-server-i386.iso
6f165f915c356264ecf56232c2abb7b5  ubuntu-6.10-server-powerpc.iso
4971edddbfc667e0effbc0f6b4f7e7e0  ubuntu-6.10-server-sparc.iso

First column is the md5 string and second column is the location of the file. To check all them from file, do this:

md5sum -c md5sum.txt

The output will be like this if success

...
ubuntu-6.10-desktop-amd64.iso: OK
ubuntu-6.10-desktop-i386.iso: OK
...

转载于:https://my.oschina.net/uniquejava/blog/420473

相关文章:

  • Linux 磁盘配额 quota
  • crontab笔记
  • 互联网一线大厂都在用的Java架构师知识体系
  • linux 安全
  • centos中mysql,和配置ansible遇到的错误
  • 博客版权问题
  • Graph database_neo4j 底层存储结构分析(1)
  • python_bomb----数据类型总结
  • Advanced Bash-Shell Guide(Version 10) 学习笔记三
  • 当大多数人对Vue理解到炉火纯青的时候,是不是该思考一下怎么让vue页面骚气起来...
  • Jquery有哪些选择器
  • XML和Schema命名空间详解
  • Skype for Business Server 2015-07-边缘服务器-1-安装-先决条件
  • 利用capability特征加强Linux系统安全【转】
  • Ajax分页问题
  • (三)从jvm层面了解线程的启动和停止
  • “寒冬”下的金三银四跳槽季来了,帮你客观分析一下局面
  • 《剑指offer》分解让复杂问题更简单
  • co.js - 让异步代码同步化
  • ES10 特性的完整指南
  • Facebook AccountKit 接入的坑点
  • Git初体验
  • input的行数自动增减
  • mockjs让前端开发独立于后端
  • Node 版本管理
  • Odoo domain写法及运用
  • Vultr 教程目录
  • 动手做个聊天室,前端工程师百无聊赖的人生
  • 聊聊flink的TableFactory
  • 前端存储 - localStorage
  • 如何实现 font-size 的响应式
  • Java数据解析之JSON
  • ​Z时代时尚SUV新宠:起亚赛图斯值不值得年轻人买?
  • # Swust 12th acm 邀请赛# [ K ] 三角形判定 [题解]
  • #gStore-weekly | gStore最新版本1.0之三角形计数函数的使用
  • #Ubuntu(修改root信息)
  • ( )的作用是将计算机中的信息传送给用户,计算机应用基础 吉大15春学期《计算机应用基础》在线作业二及答案...
  • (0)Nginx 功能特性
  • (145)光线追踪距离场柔和阴影
  • (2015)JS ES6 必知的十个 特性
  • (2022 CVPR) Unbiased Teacher v2
  • (LeetCode) T14. Longest Common Prefix
  • (MonoGame从入门到放弃-1) MonoGame环境搭建
  • (附源码)spring boot北京冬奥会志愿者报名系统 毕业设计 150947
  • (附源码)ssm基于jsp的在线点餐系统 毕业设计 111016
  • (三维重建学习)已有位姿放入colmap和3D Gaussian Splatting训练
  • (算法)N皇后问题
  • (最完美)小米手机6X的Usb调试模式在哪里打开的流程
  • ... 是什么 ?... 有什么用处?
  • .bat批处理出现中文乱码的情况
  • .NET MVC之AOP
  • .net/c# memcached 获取所有缓存键(keys)
  • .netcore 获取appsettings
  • .Net的C#语言取月份数值对应的MonthName值
  • @javax.ws.rs Webservice注解