diff --git a/pages/linux/getfacl.md b/pages/linux/getfacl.md index 968af59a9..97ad9f0bf 100644 --- a/pages/linux/getfacl.md +++ b/pages/linux/getfacl.md @@ -1,16 +1,16 @@ # getfacl -> Get file access control lists. +> Get file access control lists (ACL). > More information: . - Display the file access control list: `getfacl {{path/to/file_or_directory}}` -- Display the file access control list with numeric user and group IDs: +- Display the file access control list with [n]umeric user and group IDs: -`getfacl -n {{path/to/file_or_directory}}` +`getfacl --numeric {{path/to/file_or_directory}}` -- Display the file access control list with tabular output format: +- Display the file access control list with [t]abular output format: -`getfacl -t {{path/to/file_or_directory}}` +`getfacl --tabular {{path/to/file_or_directory}}` diff --git a/pages/linux/setfacl.md b/pages/linux/setfacl.md index 672d59ab5..d2267bcc1 100644 --- a/pages/linux/setfacl.md +++ b/pages/linux/setfacl.md @@ -3,18 +3,18 @@ > Set file access control lists (ACL). > More information: . -- Modify ACL of a file for user with read and write access: +- [M]odify ACL of a file for user with read and write access: -`setfacl -m u:{{username}}:rw {{file}}` +`setfacl --modify u:{{username}}:rw {{path/to/file_or_directory}}` -- Modify default ACL of a file for all users: +- [M]odify [d]efault ACL of a file for all users: -`setfacl -d -m u::rw {{file}}` +`setfacl --modify --default u::rw {{path/to/file_or_directory}}` - Remove ACL of a file for a user: -`setfacl -x u:{{username}} {{file}}` +`setfacl --remove u:{{username}} {{path/to/file_or_directory}}` - Remove all ACL entries of a file: -`setfacl -b {{file}}` +`setfacl --remove-all {{path/to/file_or_directory}}`