On my Solaris machine, I sometimes use the sum
command to verify that a file has not changed. I now want to check whether a directory's contents have changed but sum
only runs on files.
Is there a way to run sum
or a similar command on an entire directory?
Example sum
on a file:
$ sum file.xml
27247 11 file.xml
tar c dir | md5sum
– Milind Dumbare Mar 18 '15 at 12:13