Created
December 29, 2019 07:43
-
-
Save jmstfv/fe9f987a30320afc2e3a2573e685d330 to your computer and use it in GitHub Desktop.
Recursively set file and folder permissions
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
# Recursively set directory and file permissions (replace $mydir with a target directory) | |
find $mydir -type d -exec chmod 755 {} \; | |
find $mydir -type f -exec chmod 644 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment