Skip to content

Instantly share code, notes, and snippets.

@btorresgil
Created August 6, 2019 18:18
Show Gist options
  • Save btorresgil/2d180039499261ea99675ff2fdaf8af9 to your computer and use it in GitHub Desktop.
Save btorresgil/2d180039499261ea99675ff2fdaf8af9 to your computer and use it in GitHub Desktop.

To change all the directories to 755 (drwxr-xr-x):

find . -type d -exec chmod 755 {} \;

To change all the files to 644 (-rw-r--r--):

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