Change Permissions Only For Files

If you want to change permissions only for files, excluding folders, you can use the following command:

$ find ./ -type f -exec chmod -x {} \;

The above example will remove execute permission on all files.

If you want to see which files will be affected you can use:

$ find ./ -type f

This is archived version of blog, preventing broken links. This version will stay online indefinitely.