Created
February 8, 2018 18:05
-
-
Save themichaelyang/45869f16c2a541e80e636c7bc2414b42 to your computer and use it in GitHub Desktop.
chmod snippets
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
# from: https://superuser.com/questions/91935/how-to-chmod-all-directories-except-files-recursively | |
chmod -R u+rwX,go+rX,go-w /path | |
# from: https://unix.stackexchange.com/questions/296967/how-to-recursively-remove-execute-permissions-from-files-without-touching-folder | |
chmod -x+X -R * |
chmod 700 for .git!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://ss64.com/bash/chmod.html