Created
November 1, 2014 14:52
-
-
Save 2ec0b4/3ee9dd328afd62d8329d to your computer and use it in GitHub Desktop.
Recursively change the access permissions to directories and files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /path/to/dir/ | |
find . -type d -exec chmod 755 {} + | |
find . -type f -exec chmod 644 {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment