Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thesoulless/0da1094aa26f8e5ff9cbdeb86c039178 to your computer and use it in GitHub Desktop.
Save thesoulless/0da1094aa26f8e5ff9cbdeb86c039178 to your computer and use it in GitHub Desktop.
Recursively chmod all files to 644 and all directories to 755
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