Skip to content

Instantly share code, notes, and snippets.

@tenomoto
Last active October 7, 2018 01:38
Show Gist options
  • Select an option

  • Save tenomoto/019100e854034ff7e01c9d04696ea4a4 to your computer and use it in GitHub Desktop.

Select an option

Save tenomoto/019100e854034ff7e01c9d04696ea4a4 to your computer and use it in GitHub Desktop.
Add read permission to files and directories and execute only to directories
# a: all
# =: reset
# r: read
# X: execute excluding files
# u: user (owner)
# +: add
# w: write
chmod -R a=rX,u+w directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment