What is a checksum and why its important

So in short a checksum is an exact sequence of letters and numbers used to check data for corruption and errors, It is used to confirm that your copy is identical to that of the source. And why should you care? Thats a good question hypothetical person. Let say you are downloading a linux iso, this iso will become your operating system so its important we check it for errors as those errors may be unseen intially but could corrupt your install and make life rather difficult. So to avoid this we use a checksum utility and compare the output with the checksum of the source (this is usually found on the downloads page alongside the iso).

Checksum on Windows

First of all open command prompt as an administrator. The CertUtil is a pre-installed Windows utility, that can be used to generate hash checksums, we are going to use SHA256 for this example but there others such as MD5.

CertUtil -hashfile pathToFileToCheck SHA256

So your should look something like this:

CertUtil -hashfile C:\Users\bob\Desktop\linuxdistro.iso SHA256

You will now need to compare your output too your checksum from your source, if they match then you are set and if they dont you will have to re-download your iso. If you get further mismatches after that I suggest contacting the distro.

Checksum on Linux

As always this can be done via the console, first go to the directory of the iso.

cd ~/Documents

then run:

sha256sum linuxdistro.iso

Then compare. If it matches you are set, if not you may need to redownload.