Find, count , hash, and scan all executables on the local drive: how to?
Hi to all,
I'd like to find, count, hash, an scan with clamav all the executable on my pc.
I've seen that I can list all of them by using the following command:
sudo find / \( -path "pathToExclude1" -o -path "pathToExclude2" -o -path "pathToExclude3" -o -path "pathToExclude4" \) -prune -o -type f -perm -u+x -ls
Now instead of listing them I'd like to
-
count them
-
hash them with sha256 and store path and hash code in a file
-
scan them with clamav passing the list of file
Is there any how to to help me in writing this bash script?
Posted Oct 10, 2025, 7:29 PM UTC
14