Created
November 19, 2013 19:23
-
-
Save pjdietz/7550994 to your computer and use it in GitHub Desktop.
Set file and directory permissions with find, xargs, chmod
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
# Set all directories to 755, all files to 644. | |
find -type d -print0 | xargs -0 chmod 755 | |
find -type f -print0 | xargs -0 chmod 644 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment