Created
June 14, 2021 09:23
-
-
Save kmvan/3f5b3c9c6ff84a23859951a1871a1658 to your computer and use it in GitHub Desktop.
Set dir and file mode
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 | |
# dirs | |
find -type d -exec chmod 0755 {} \; | |
# files | |
find -not -type d -exec chmod 644 {} \; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment