Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marciuz/005ad1d2b3f694e0aabc to your computer and use it in GitHub Desktop.
Save marciuz/005ad1d2b3f694e0aabc to your computer and use it in GitHub Desktop.
alias wwwperm="find . \( -type d -exec chmod -v 755 '{}' \; \) -o \( -type f -exec chmod -v 644 '{}' \; \)"
@marciuz
Copy link
Author

marciuz commented Apr 27, 2015

find . -type f -exec chmod 644 {} ;
find . -type d -exec chmod 755 {} ;

@marciuz
Copy link
Author

marciuz commented Jan 8, 2016

find . -type f -exec chmod 664 {} ;
find . -type d -exec chmod 775 {} ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment