课程: Linux: System Information and Directory Structure Tools

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Getting extended attributes

Getting extended attributes

- [Instructor] Just as you can use the LS file and stack commands to get file attributes, you can use additional tools and/or options to gather information on extended attributes. To view access control list, we need a file with them. We haven't created a file with an ACL yet, so let's do it now by using the touch command. The touch command's job is to change the timestamp of a file, otherwise known as touching the file. However, if you specify a file that does not exist, then it will create an empty file for you, which is perfect for what we're doing. In a terminal, type in touch space ACL file dot txt and hit enter. Let's take a look at the permissions of this file using a long list. Type in LS space dash L space ACL file dot txt and hit enter. We'll contrast this output with another listing of it in a moment. Now let's set an ACL in the file using the set FACL command. Type in set FACL, space dash M for modify, user…

内容