Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the getfacl command of linux to display the ACL of a file or directory

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the use of linux's getfacl command to display the ACL of files or directories. I hope you will gain a lot after reading this article. Let's discuss it together.

The purpose of the getfacl command is to view the ACL information of the file.

For each file and directory you want to view, the getfacl command displays the name of the file, user owner, group owner, and access control list (ACL).

Syntax format: getfacl [parameters] [directory or file]

Common parameters:

Reference example

View the ACL of the specified file:

[root@linuxcool ~] # getfacl linuxcool.txt# file: test# owner: root# group: rootuser::rw-group::r--other::r--

Viewing the ACL of the specified file does not display comment information:

[root@linuxcool ~] # getfacl-c linuxcool.txtuser::rw-group::r--other::r--

Use a table to view the ACL of the specified file:

[root@linuxcool] # getfacl-t linuxcool.txtfile: linuxcool.txtUSER root rw-GROUP root r--other rMurray-after reading this article, I believe you have some understanding of the ACL of using linux's getfacl command to display files or directories. If you want to know more about it, welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report