Skip to content

Instantly share code, notes, and snippets.

@abarth500
Created May 28, 2012 09:44
Show Gist options
  • Save abarth500/2818216 to your computer and use it in GitHub Desktop.
Save abarth500/2818216 to your computer and use it in GitHub Desktop.
Recursive chmod only of file or directory
# for all files
find . -type f -print | xargs chmod 644
# for all firectories
find . -type d -print | xargs chmod 755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment