Created
July 22, 2016 07:27
-
-
Save jewei/ae9e09f2eb3d5d142429934ed6d40f98 to your computer and use it in GitHub Desktop.
Useful CLI commands
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
To recursively give directories read&execute privileges: | |
find /path/to/base/dir -type d -exec chmod 755 {} + | |
To recursively give files read privileges: | |
find /path/to/base/dir -type f -exec chmod 644 {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment