Forrest logo
back to the getfacl tool

getfacl:tldr:e5174

getfacl: Display the file access control list with tabular output format.
$ getfacl -t ${filename_or_directory}
try on your machine

The getfacl -t ${filename_or_directory} command is used to retrieve the Access Control List (ACL) for a specific file or directory in Linux. ACLs provide more granular control over file and directory permissions by allowing users and groups to have different levels of access beyond the traditional read, write, and execute permissions.

Here's a breakdown of the command:

  • getfacl: It is the command itself, used to retrieve ACL information.

  • -t: This option is used to print the output in a tabular format, making it easier to read and understand the ACL entries.

  • ${filename_or_directory}: This is the placeholder for the file or directory for which you want to retrieve the ACL. You need to replace it with the actual name or path of the file/directory.

When you run the command, it will display the ACL entries for the specified file or directory, including the permissions for different users and groups, as well as any special ACL flags set. The tabular format provides a clear representation of the ACL entries, making it easier to interpret and analyze the access control settings.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the getfacl tool