Skip to content

Instantly share code, notes, and snippets.

@pwaldhauer
Created April 4, 2016 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwaldhauer/d06309943127eeb86eb427d80c247449 to your computer and use it in GitHub Desktop.
Save pwaldhauer/d06309943127eeb86eb427d80c247449 to your computer and use it in GitHub Desktop.
Better chmod all
find . -type d -exec chmod 755 {} \;
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 644 {} \; // rw----
find . -type f -exec chmod 664 {} \; // rwrw--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment