Created
January 29, 2013 11:51
-
-
Save simonewebdesign/4663701 to your computer and use it in GitHub Desktop.
Chmod all files to 664 and folders to 775 of a given directory. First argument is the directory.
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
# for files | |
find $1 -type f -print0 | xargs -0 chmod -v 664 | |
# for folders | |
find $1 -type d -print0 | xargs -0 chmod -v 775 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment