2010-05-31

md5sum

md5sum is a wide-used tool for checking the integrity of files after data transfers. Especially, when you download some big files (such as image of system), you may want to ensure that the huge files have been fully correctly download to your local disk. Usually, data privider will offer a md file to let user check the integrity. See the example in http://downloads.openwrt.org/backfire/10.03/rb532/. After download all the data files,  you also need to download the md5sums file into the same directory and run
>md5sum -c md5sum

About how to create a md file is shown below:
>md5sum file > file.md5 (single file)
>find directory -type f -print0 | xargs -0 md5sum >> file.md5 (all file in a directory)

Reference:

No comments:

Post a Comment