Skip to content

Instantly share code, notes, and snippets.

@bzerangue
Last active November 22, 2022 23:09
Show Gist options
  • Save bzerangue/3b210b009e8d934b4a68 to your computer and use it in GitHub Desktop.
Save bzerangue/3b210b009e8d934b4a68 to your computer and use it in GitHub Desktop.
Scripts for recursively chmod directories only and recursively chmod files only

Useful commands

You may find these commands useful when adjusting file and directory permissions.

To recursively chmod directories only:

find /your/site/root -type d -exec chmod 755 {} \;

To recursively chmod files only:

find /your/site/root -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment