Skip to content

Instantly share code, notes, and snippets.

@ar7n
Created June 26, 2015 11:25
Show Gist options
  • Save ar7n/90f910277ffbd2140df2 to your computer and use it in GitHub Desktop.
Save ar7n/90f910277ffbd2140df2 to your computer and use it in GitHub Desktop.
Set different permissions for files and folders
find /path/to/base/dir -type d -print0 | xargs -0 chmod 755
find /path/to/base/dir -type f -print0 | xargs -0 chmod 644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment