From 4073a9fd5b34fa2dc4ed57189e2fb86a9f438089 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Tue, 6 Feb 2024 22:16:32 +0800 Subject: [PATCH] {get,set}facl: update & unify style (#12169) * {get,set}facl: update & unify style - setfacl: add acronym to description - setfacl: `{{file}}` -> `{{path/to/file_or_directory}}` - {get,set}facl: use long options * {get,set}facl: add mnemonics --- pages/linux/getfacl.md | 10 +++++----- pages/linux/setfacl.md | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) 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}}`