Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save luisfc/f33faf50d4c8c1e002b9fbefb9e3f81d to your computer and use it in GitHub Desktop.
Save luisfc/f33faf50d4c8c1e002b9fbefb9e3f81d 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