Created
June 14, 2018 23:49
-
-
Save shaneturner/bc9fc0b8915852f389edb148854b57a7 to your computer and use it in GitHub Desktop.
Set normal permissions on files and directories
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 | |
# Sets 644 for files and 755 to directories in current directory and sub directories | |
find . -type d -exec chmod 0755 {} \; | |
find . -type f -exec chmod 0644 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment