File Permissions

getfacl

Display Access Control Lists (ACLs) for files and directories.

Synopsis

syntax
getfacl [OPTION]... FILE...

Examples

Show ACLs for a file
getfacl file.txt
Show ACLs recursively
getfacl -R /shared
Show ACLs without comment headers
getfacl --omit-header dir/

Common options

FlagDescription
-RRecurse into directories
-tTabular output format
-pDo not strip leading path
-aShow access ACL

About getfacl

The `getfacl` command display Access Control Lists (ACLs) for files and directories. File permission commands control access to files and directories on Linux.

The Unix permission model uses owner, group, and other categories with read, write, and execute bits. Properly managing permissions is essential for system security, multi-user environments, and running services that require specific access levels.

The command accepts 4 commonly used flags shown above, though the full set of options is available in the man page (`man getfacl`). The 3 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More File Permissions Commands

Other commands in the File Permissions category

Related tools