Skip to content

Instantly share code, notes, and snippets.

@rrdial
Created November 8, 2013 23:57
Show Gist options
  • Save rrdial/7379539 to your computer and use it in GitHub Desktop.
Save rrdial/7379539 to your computer and use it in GitHub Desktop.
Generally correct permissions for files and folders on Mac. Borrowed from http://www.linuxquestions.org/questions/linux-general-1/chmod-all-files-644-and-files-755-a-542059/.
find . -type d -print0 | xargs -0 chmod 0755 # For directories
find . -type f -print0 | xargs -0 chmod 0644 # For files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment