1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 12:45:59 +02:00

chmod: remove all rights (#3748)

* chmod: remove all rights

* chmod: consistent bracket use
This commit is contained in:
Jacob Roeland 2020-01-11 17:10:48 -05:00 committed by Zlatan Vasović
parent 39fd1720c2
commit b289e56fc4

View file

@ -6,22 +6,26 @@
`chmod u+x {{file}}`
- Give the user rights to [r]ead and [w]rite to a file/directory:
- Give the [u]ser rights to [r]ead and [w]rite to a file/directory:
`chmod u+rw {{file_or_directory}}`
- Remove executable rights from the [g]roup:
- Remove e[x]ecutable rights from the [g]roup:
`chmod g-x {{file}}`
- Give [a]ll users rights to read and execute:
- Give [a]ll users rights to [r]ead and e[x]ecute:
`chmod a+rx {{file}}`
- Give [o]thers (not in the file owner's group) the same rights as the group:
- Give [o]thers (not in the file owner's group) the same rights as the [g]roup:
`chmod o=g {{file}}`
- Remove all rights from [o]thers:
`chmod o= {{file}}`
- Change permissions recursively giving [g]roup and [o]thers the abililty to [w]rite:
`chmod -R g+w,o+w {{directory}}`