Created
June 3, 2011 18:24
-
-
Save reidransom/1006874 to your computer and use it in GitHub Desktop.
Recursively chmod files and directories separately
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Beginning in the current directory and searching recursively, it finds all files that are not directories and performs chmod on them.