SilverWav's Journal

The best is yet to come…

Note: md5sum for each file in directory

leave a comment »

md5sum

This is a recursive command, that is, it will create a md5 for all files in sub directories as well.

1. Create md5sum’s for each file in the directory and output to the file check.md5.

find . -type f 2>/dev/null -exec md5sum {} \; >check.md5

Note: You may need to run from root e.g sudo -i, which is not best practice.

2. Confirm files in the directory against check.md5 and output to the file results.md5

md5sum -c check.md5 > results.md5
Advertisements

Written by SilverWav

April 25, 2010 at 12:16 pm

Posted in Notes

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: