通过 stat
stat file_name
Run Code Online (Sandbox Code Playgroud)
或通过 getfacl
getfacl file_name
Run Code Online (Sandbox Code Playgroud)
从人 getfacl
For each file, getfacl displays the file name, owner, the group, and the Access
Control List (ACL). If a directory has a default ACL, getfacl also displays the
default ACL. Non-directories cannot have default ACLs.
Run Code Online (Sandbox Code Playgroud)
从 man stat
Display file or file system status.
Run Code Online (Sandbox Code Playgroud)