Last active
November 28, 2016 13:48
-
-
Save ip413/4e9b64915741bd8f7258d126b29c06b9 to your computer and use it in GitHub Desktop.
Recursively resets permissions for current folder and all files inside it to 755 and 644
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 | |
# Recursively resets permissions for current folder and all files inside it to 755 and 644. | |
# No file will be executable. | |
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