Md5sum

From Leo's Notes
Revision as of 19:40, 4 May 2013 by Leo (talk | contribs)
This page was last edited on 4 May 2013, at 19:40.

Installation

FreeBSD

FreeBSD does have a md5sum utility, but it's named gmd5sum. Hint: the 'g' is for GNU. Built it from ports.

Linux

The GNU md5sum utility should be installed as it is part of coreutils.

Usage

To md5sum files recursively, run:

 find ./target -type f -exec md5sum {} \;>> /checksum.md5

To verify files from a checksum file, run:

 md5sum -c /checksum.md5