Md5sum

From Free net encyclopedia

Template:Lowercase

md5sum is a computer program which calculates and verifies MD5 hashes. It is commonly used to verify the integrity of files. It is installed by default in most Unix, Linux and BSD operating systems. Versions for Microsoft Windows do exist (see external links).

Usage

To calculate the MD5 hash of a file, simply give the filename as an argument to md5sum.

$ md5sum somefile
76c6dafd6569222312357fdfdbace3e5  somefile

The output of md5sum can be saved into a text file and used to verify the integrity of a file. If the output above is stored in the file somefile.md5, the following command will compare the MD5 hash of somefile with the hash stored in somefile.md5.

$ md5sum -c somefile.md5
somefile: OK


External links