Remove all executable bits from files
To remove all executable bits from all files in the current directory and its subdirectories, you can use the following one-liner command:
find . -type f -exec chmod -x {} \;
Explanation
find . -type f
: Finds all files (ignores directories) starting from the current directory.-exec chmod -x {} \;
: Executes thechmod -x
command on each found file, removing the executable bits.