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:
parent
39fd1720c2
commit
b289e56fc4
1 changed files with 8 additions and 4 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue