Skip to content

Instantly share code, notes, and snippets.

@jewei
Created July 22, 2016 07:27
Show Gist options
  • Save jewei/ae9e09f2eb3d5d142429934ed6d40f98 to your computer and use it in GitHub Desktop.
Save jewei/ae9e09f2eb3d5d142429934ed6d40f98 to your computer and use it in GitHub Desktop.
Useful CLI commands
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