How to MD5 checksum a file on Ubuntu
If you need to compare a file to make sure it’s the same file, or contains the same contents, then MD5 checksums are a good way to go. If you use MD5 before you copy a file and after you copy a file, you can ensure that the contents of the file were not changed during the copy. You can also save checksums of files so that in a few months/years, you can ensure that the file was not currupted or changed over time. To get the MD5 checksum of a file use the code below where XXXXXXX is the filename.