commands

getfacl — inspect access control lists

Displays access ACL and directory default ACL when supported. -c omits header; -n displays numeric IDs. Effective comments can show mask-limited rights. Optional ACL utility unavailable in local test environment. Example assumes a fresh permissions lab fixture.

Formal Syntax & Structure

linux syntaxlinux
getfacl [OPTION] FILE...

Parameters & Attributes

NameTypeDescription
FILEoperandfixture path
-coptionomit header
-noptionnumeric IDs

Return Value

exit status and output

Displays access ACL and directory default ACL when supported. -c omits header; -n displays numeric IDs. Effective comments can show mask-limited rights. Optional ACL utility unavailable in local test environment.

Working Example

Example Snippetlinux
getfacl -c -- report.txt
Linux Reference