getfacl
file managementLinux/Unix
The getfacl command is one of the most frequently used commands in Linux/Unix-like operating systems. getfacl Display file access control lists
Quick Reference
Command Name:
getfacl
Category:
file management
Platform:
Linux/Unix
Basic Usage:
getfacl [options] [arguments]
Common Use Cases
Syntax
getfacl [options] file ...
Options
Option | Description |
---|---|
-a, --access |
Display the file access control list only |
-d, --default |
Display the default access control list only |
-c, --omit-header |
Do not display the comment header |
-e, --all-effective |
Print all effective rights |
-E, --no-effective |
Print no effective rights |
-R, --recursive |
Recursively list ACLs for directories and their contents |
-L, --logical |
Logical walk, follow symbolic links |
-P, --physical |
Physical walk, do not follow symbolic links |
-t, --tabular |
Display ACL in a tabular format |
-n, --numeric |
Display user and group IDs numerically |
-p, --absolute-names |
Don't strip leading slash in pathnames |
--skip-base |
Skip files that only have the base entries (owner, group, other) |
Examples
How to Use These Examples
The examples below show common ways to use the getfacl
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
getfacl filename