Skip to content

Instantly share code, notes, and snippets.

@jmstfv
Created December 29, 2019 07:43
Show Gist options
  • Save jmstfv/fe9f987a30320afc2e3a2573e685d330 to your computer and use it in GitHub Desktop.
Save jmstfv/fe9f987a30320afc2e3a2573e685d330 to your computer and use it in GitHub Desktop.
Recursively set file and folder permissions
# Recursively set directory and file permissions (replace $mydir with a target directory)
find $mydir -type d -exec chmod 755 {} \;
find $mydir -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment