Be aware that the md5sum file has to comply with a specific format. IOW, I have used the file provided with certain downloads, it did not come in the proper format, so I needed to `md5sum` the download and `cat` the md5sum file.
Sometimes, the md5sum hash is displayed at the download site in the browser. I have dragged the mouse over that hash, gone to konsole, where I have already cd'ed to the directory with the download and
echo <middle-click>
Enter
That puts the hash at the beginning of the line. Then
md5sum <download>
Enter
After some wheels grinding, the result is printed, starting at the beginning of the line just below, making comparison fairly easy.
But really, are we going for the Guinness Book of World Records on "lazy" here?
P(ost).S(miley). The manual seems to provide what is the proper format, in case you ever want to make a text file that md5sum -c will understand:
Code: Select all
The sums are computed as described in RFC 1321. When checking, the input should be a former output of
this program. The default mode is to print a line with checksum, a character indicating type (`*' for
binary, ` ' for text), and name for each FILE.