Recursively removing the execute permission
Nigel Ridley
nigel at prayingforisrael.net
Thu Apr 29 15:05:47 UTC 2010
On 04/29/2010 05:32 PM, Nils Kassube wrote:
> Nigel Ridley wrote:
>> I need to recursively remove the execute permission on a bunch of
>> [html] files that came from a Windows box. The problem I have is
>> that there are child directories within the main directory.
>>
>> How can I get this done?
>> I did some Googling and came up with:
>> % chmod -x ...
>> but I don't understand it enough to use it :-(
>
> It doesn't work with chmod alone, you need find to select the files to
> modify. If you want to use it for html files only, this should work:
>
> find -name \*.html -exec chmod -x {} \;
>
> And if you want to use it for all ordinary files, try this:
>
> find -type f -exec chmod -x {} \;
>
>
> Nils
>
Thanks Nils.
Just to clarify: Do I have tp specify a directory, or can I just cd there?
Nigel
More information about the kubuntu-users
mailing list