Forked from luisfc/Change permissions to directories or files
Created
April 9, 2017 15:38
-
-
Save xdevs23/cd4a205d594ac8ef804f6b708c90f6b4 to your computer and use it in GitHub Desktop.
Change permissions to directories or files
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
#Change permissions recursively only to directories: | |
find . -type d -exec chmod -R 0755 {} \; | |
#Change permissions recursively only to files: | |
find . -type f -exec chmod -R 0644 {} \; | |
#Point (.) can be changed to some absolute path, por example /home/myuser/directory/. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment