Skip to content

Instantly share code, notes, and snippets.

@richard-to
Last active December 11, 2015 05:48
Show Gist options
  • Save richard-to/4554162 to your computer and use it in GitHub Desktop.
Save richard-to/4554162 to your computer and use it in GitHub Desktop.
Recursively set file or directory permissions. Make sure to leave spaces between brackets.
find . -type d -exec chmod 755 {} \+
find . -type f -exec chmod 644 {} \+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment