Skip to content

Instantly share code, notes, and snippets.

@pjdietz
Created November 19, 2013 19:23
Show Gist options
  • Save pjdietz/7550994 to your computer and use it in GitHub Desktop.
Save pjdietz/7550994 to your computer and use it in GitHub Desktop.
Set file and directory permissions with find, xargs, chmod
# Set all directories to 755, all files to 644.
find -type d -print0 | xargs -0 chmod 755
find -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