Hi.

Some people have already answered the find method, but I use a slight
different one:

find / -type f -print0 | xargs -0 md5sum | tee /tmp/md

This way you'll end up running fewer processes and still cope with odd
characteres in file names (that you won't if just using for i in `find`).

Regards,
Luciano Rocha

On Tue, Jun 25, 2002 at 09:55:54AM -0700, Mark G. Spencer wrote:
> Is it possible to MD5 all the items in a directory tree using Linux?  I
> am on a Redhat 7.3 workstation.  I have read the man and info file for
> MD5SUM and also tried to run it against a directory without success.  I
> get the error "Is a directory" which is very self explanatory.
> 
> So .. Is there another MD5 utility with more flexibility?  I basically
> need to MD5 every file individually in a large directory tree with the
> output redirected to a text file showing the path, filename, and hash of
> every file in that directory tree.
> 
> Thanks for the assistance,
> 
> Mark

Reply via email to