Last active
September 5, 2016 23:21
-
-
Save jesugmz/19730304dd0e07f053c7 to your computer and use it in GitHub Desktop.
Recursive chmod for directories and files
This file contains 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 | |
# | |
# Recursive chmod for directories and files. | |
# | |
# all directories within the current path to 755 (-rwxr-xr-x) | |
find . -type d -exec chmod 755 {} \; | |
# all files within the current path 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