Custom Search

Tuesday, March 31, 2009

How to Calculate a md5sum and Validate it

Prerequisite: The md5sum's application is installed in your system.

1) To calculate the md5sum on a file and place this result in another file with the extension .md5

The command is : md5sum FileName > FileName.md5

2) To validate a md5sum's file. Note that the original file and the generated md5sum file are in the same directory for this demonstration.

The command is : md5sum -c FileName.md5