Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-28 00:18:38 +00:00
parent 9fe6559a97
commit a3692d638b
77 changed files with 334 additions and 180 deletions

View File

@@ -8,18 +8,18 @@ source: https://github.com/tldr-pages/tldr.git
> Set file access control lists (ACL).
> More information: <https://manned.org/setfacl>.
- [M]odify ACL of a file for user with read and write access:
- Modify ACL of a file for user with read and write access:
`setfacl --modify u:{{username}}:rw {{path/to/file_or_directory}}`
`setfacl {{[-m|--modify]}} u:{{username}}:rw {{path/to/file_or_directory}}`
- [M]odify [d]efault ACL of a file for all users:
- Modify default ACL of a file for all users:
`setfacl --modify --default u::rw {{path/to/file_or_directory}}`
`setfacl {{[-m|--modify]}} {{[-d|--default]}} u::rw {{path/to/file_or_directory}}`
- Remove ACL of a file for a user:
`setfacl --remove u:{{username}} {{path/to/file_or_directory}}`
`setfacl {{[-x|--remove]}} u:{{username}} {{path/to/file_or_directory}}`
- Remove all ACL entries of a file:
`setfacl --remove-all {{path/to/file_or_directory}}`
`setfacl {{[-X|--remove-all]}} {{path/to/file_or_directory}}`