Skip to content

Instantly share code, notes, and snippets.

@sepehr
Last active January 1, 2016 21:39
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 sepehr/8205400 to your computer and use it in GitHub Desktop.
Save sepehr/8205400 to your computer and use it in GitHub Desktop.
Shell: Chmod recursively by type
find . -type f -print0 | xargs -0 chmod 0644
find . -type d -print0 | xargs -0 chmod 0755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment