Md5sum: Difference between revisions

From Leo's Notes
This page was last edited on 24 February 2017, at 19:12.
m Text replacement - "<code>" to "{{code|"
Line 1: Line 1:
== Installation ==
== Installation ==
=== FreeBSD ===
=== FreeBSD ===
FreeBSD does have a <code>md5sum</code> utility, but it's named <code>gmd5sum</code>. Hint: the 'g' is for GNU. Build it from ports.
FreeBSD does have a {{code|md5sum</code> utility, but it's named {{code|gmd5sum</code>. Hint: the 'g' is for GNU. Build it from ports.


=== Linux ===
=== Linux ===
The GNU md5sum utility should be installed as it is part of <code>coreutils</code>.
The GNU md5sum utility should be installed as it is part of {{code|coreutils</code>.


== Usage ==
== Usage ==


To <code>md5sum</code> files recursively, run:
To {{code|md5sum</code> files recursively, run:
<syntaxhighlight lang="bash" line start="1" enclose="div">
<syntaxhighlight lang="bash" line start="1" enclose="div">
  find ./target -type f -exec md5sum {} \;>> /checksum.md5
  find ./target -type f -exec md5sum {} \;>> /checksum.md5

Revision as of 19:12, 24 February 2017

Installation

FreeBSD

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

Linux

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

Usage

To {{code|md5sum files recursively, run:

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

To verify files from a checksum file, run:

 md5sum -c /checksum.md5