Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xdevs23/cd4a205d594ac8ef804f6b708c90f6b4 to your computer and use it in GitHub Desktop.
Save xdevs23/cd4a205d594ac8ef804f6b708c90f6b4 to your computer and use it in GitHub Desktop.
Change permissions to directories or files
#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