1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 10:17:58 +01:00

Update chmod.md: Add recursive chmod

Might not be approved, but this is the classic 755 on all directories, 644 on all files in a tree a la: https://stackoverflow.com/questions/18817744/change-all-files-and-folders-permissions-of-a-directory-to-644-755

As I just discovered `tldr`, I had to try my hand at changing a command
This commit is contained in:
Matthew Thompson 2017-11-24 09:01:12 -05:00 committed by GitHub
parent 6c391a1192
commit 474ca28ff1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,3 +21,7 @@
- Give [o]thers (not in the file owner's group) the same rights as the group:
`chmod o=g {{file}}`
- Change permissions [-R]ecursively giving the [u]ser [r]ead, [w]rite, and e[X]ecute rights, and give [g]roup and [o]thers [r]ead and e[X]ecute rights but not [-w]rite rights:
`chmod -R u+rwX,go+rX,go-w {{directory}}`