Return to Snippet

Revision: 41654
at February 22, 2011 00:53 by mitnworb


Initial Code
Recursively chmod directories only

find . -type d -exec chmod 755 {} \;

This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only.

Similarly, the following will chmod all files only (and ignore the directories):

find . -type f -exec chmod 644 {} \;

Initial URL

                                

Initial Description

                                

Initial Title
Recursively chmod directories only

Initial Tags

                                

Initial Language
Bash