Removing the execute flag from many files

Tim Abell · May 17, 2008

Here’s how to recursively remove execute permissions on files that have been copied from a windows system.

find * -type f -exec chmod -x {} \;

ie, find all files (not directories), and execute a command to remove all execute permissions for each file.

Share: Tweet | LinkedIn
Suggest improvments: page source on github