You can do this with sha1sum
, but there are some issues when trying to do this on a group of files.
For example, if you were just doing a bunch of files, you can do something like the following (where the '-' parameter tells sha1sum
to use standard input):
sha1sum * | sha1sum -
That won't recurse into the subdirectories, or include the meta-data in the sum.
Or you could do something like this:
tar cO --mtime=0 . | sha1sum -
This will recurse, and include the meta-data. However, the checksum will be dependent on the order in which the files are collected, and you will have to perform the command from the same relative location. You might also want to change the tar
parameters depending on which metadata should be included or excluded.