Questions tagged [md5sum]

md5sum is a command line program used to calculate MD5 hashes of files, and provides a simple way to check the integrity of a download.

Since any two given files are very unlikely to have the same MD5 hash sum unless they are exactly the same, the md5sum command line program is commonly used to verify download integrity, particularly for large files.

For example, it is generally recommended to run md5sum on a downloaded Ubuntu .iso file and comparing the result to the official hash for that particular image before creating a LiveCD/LiveUSB with it. This is to check for errors which could cause problems when trying to run or install it.

md5sum could also be used when the official hash for a piece of software is known and it is downloaded from somewhere other than the original source. This can help verify that the software is the particular version sought and that it is genuine (although when used for the latter purpose, it's worth noting that this is not a foolproof method; see link #2).


Links for further information:

  1. http://en.wikipedia.org/wiki/Md5sum
  2. http://en.wikipedia.org/wiki/Md5
  3. https://help.ubuntu.com/community/HowToMD5SUM

When using md5sum specifically to check Ubuntu .iso integrity, you can refer to a list of the correct MD5 hashes for each image version for all currently supported versions of Ubuntu here: https://help.ubuntu.com/community/UbuntuHashes

99 questions
287
votes
9 answers

How to get the MD5 hash of a string directly in the terminal?

How do I get the MD5 hash of a string directly from the terminal? For example, I want the string abcdefg hashed. Currently the md5sum command only accepts a filename as input. I want to simply enter the following line and everything be done…
2hamed
  • 3,483
41
votes
3 answers

How to automate comparison of md5sum hash values for a large number of files

I can check md5sum hash of a file from a terminal as, $ md5sum my_sensitive_file 8dad53cfc973c59864b8318263737462 my_sensitive_file But the difficult part is to compare the hash value with exact one. It is difficult to compare the 32 characters…
sourav c.
  • 46,120
40
votes
2 answers

How can I recursively list Md5sum of all the files in a directory and its subdirectories?

I want to list (and save) Md5 check sum of all the files in a directory and save that list in a text file called md5sum.txt it would be also nice if I could Integrate it within tree command (which creates a tree structure of folders and…
34
votes
5 answers

How can I check the integrity of a downloaded Ubuntu CD?

I've just downloaded a CD image of Ubuntu. I know the installer has a check CD option, but how can I check that the image is good before burning it to CD?
Jorge Castro
  • 73,717
30
votes
2 answers

How to check the progress of md5sum on many huge files?

I have some 500 files of 650MB each, named bigfile.000 to bigfile.199 and I need to calculate the MD5 checksum of all files combined. The command I am using is: cat bigfile.* | md5sum I have the time, and I understand it will take hours to…
Kenneth L
  • 917
20
votes
7 answers

“Hash sum mismatch” error due to identical SHA1 and MD5 but different SHA256

When running apt full-upgrade or apt update I'm getting several logs that are more or less the same as this one, where there is an identical filesize, SHA1 and MD5 but different SHA256: E: Failed to fetch…
RyanQuey
  • 313
15
votes
1 answer

Check hash (MD4, MD5, SHA-1, and CRC) on Ubuntu 12.04 and 12.10

I have a lot of iso-files downloaded from internet. I want to check the hash from my Ubuntu 12.04 and 12.10. Is there any application on Ubuntu to check the MD4, MD5, SHA-1, and CRC hash? I need the CRC hash-checker to check my Windows 8 iso files.
lambda23
  • 3,362
15
votes
4 answers

What are the differences between "md5sum" and "sha256sum"?

Why we need two tools for verifying ISO . is there any specific things to consider between them ?
Raja G
  • 105,327
  • 107
  • 262
  • 331
15
votes
3 answers

Generate SHA, MD5 and other checksums from properties menu (added "Digests" tab)

I am trying to restore a function that I had on my last box. It added a tab in the properties menu of any file called "Digests". From there I could choose any/all of the hash formats, click hash and it would generate said checksums right there.…
Chuck
15
votes
4 answers

MD5 mismatch on my 12.04 ISO, what is going on?

I downloaded ubuntu-12.04-desktop-amd64.iso from http://releases.ubuntu.com/precise/ This page also has a link to file showing the respective MD5 hashes for each file The page shows 128f0c16f4734c420b0185a492d92e52…
oct
  • 151
14
votes
2 answers

How to identify and replace broken files in a corrupted Ubuntu ISO?

So, this isn't exactly an issue running Ubuntu, but rather with installing it. Every time I try to download the Ubuntu ISO (from any source) it seems to end up corrupt. That is, the MD5 sums are never correct. The Ubuntu ISO files come with a file…
Hailwood
  • 5,017
14
votes
3 answers

Are ubuntu packages (deb-files) only md5sum secured?

Introductory Background to the question below (so the question is more usable to more people) Inside of an Ubuntu/debian-style package (*.deb file) there is a file named /DEBIAN/md5sums which has a content of this…
12
votes
1 answer

How can I disable checksum feature in brasero?

Is there any option in brasero to disable the checksum feature in brasero? It slows down the burning.
kv1dr
  • 1,381
11
votes
6 answers

Can two different firmware files have same md5 sum?

Can two different binary files have the same md5 sum? One binary firmware file have different version number and marked as revised, small bug fixed. But both files have same md5 sum, I would assume that revised file can't have the same md5 sum - can…
minto
  • 831
10
votes
4 answers

Dump md5 and sha1 checksums with a single command!

I am looking for command or utilities for calculating md5,sha1 hash value by one command. Right now ubuntu has sha1sum and md5sum command for calculating hash value.
1
2 3 4 5 6 7