IUseDebianBTW
New Member
I found this command:
$ find "Directory Name" -type f -print0 | sort -z | xargs -r0 sha256sum | sha256sum
It fulfills my requirement of generating a checksum for a whole directory without disk writes, but with a few issues:
1. Different result generated on gnome compared to kde
Maybe because gnome puts some hidden definition files in each directory? im not sure. How can I skip checking hidden files & resolve this issue?
2. sha256sum is a bit cpu slow, I just need to verify integrity for the purpose of detecting corruption/missing files
What would be the best checksum to use that works by default on all normal distributions?
$ find "Directory Name" -type f -print0 | sort -z | xargs -r0 sha256sum | sha256sum
It fulfills my requirement of generating a checksum for a whole directory without disk writes, but with a few issues:
1. Different result generated on gnome compared to kde
Maybe because gnome puts some hidden definition files in each directory? im not sure. How can I skip checking hidden files & resolve this issue?
2. sha256sum is a bit cpu slow, I just need to verify integrity for the purpose of detecting corruption/missing files
What would be the best checksum to use that works by default on all normal distributions?

