I want to verify integrity of folder. The folder has so many files and folders. How to calculate hash value of directory as a whole on Ubuntu. md5sum calculate at only file level.
I created dir-fingerprint that can be used to solve that. It creates fingerprint/hash for all the files in directory tree and saves it in a file, also telling you if the fingerprint has changed.
It can be installed with:
$ brew install nejckorasa/tap/dir-fingerprint
and used as:
$ dir-fingerprint <path_to_directory>
Old [8a7b73f9671004edd50500bc7d3f1837d841a5c086011207259eb2d183823adf] New [8a7b73f9671004edd50500bc7d3f1837d841a5c086011207259eb2d183823adf] @ <path_to_directory>/.fingerprint Diff false
.fingerprint file created