Skip to content

Instantly share code, notes, and snippets.

@efenacigiray
Last active June 10, 2020 13:16
Show Gist options
  • Save efenacigiray/e96a78944abb50bc3ad2 to your computer and use it in GitHub Desktop.
Save efenacigiray/e96a78944abb50bc3ad2 to your computer and use it in GitHub Desktop.
To recursively give directories only or files only read & execute privileges:
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