Created
April 9, 2017 15:34
-
-
Save luisfc/f33faf50d4c8c1e002b9fbefb9e3f81d 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