Skip to content

Instantly share code, notes, and snippets.

@ckunte
Created April 1, 2013 08:29
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 ckunte/5283820 to your computer and use it in GitHub Desktop.
Save ckunte/5283820 to your computer and use it in GitHub Desktop.
Applying permissions to folders (755) and files (644) recursively.
#!/usr/bin/env sh
echo "Applying permissions to folders as 755, and to files as 644:"
find ~/Sites/ckunte.github.com -type d -exec chmod 755 {} +
find ~/Sites/ckunte.github.com -type f -exec chmod 644 {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment