课程: Linux: System Information and Directory Structure Tools
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Getting extended attributes - Linux教程
课程: Linux: System Information and Directory Structure Tools
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…
内容
-
-
-
-
-
-
(已锁定)
What is a file?5 分钟 3 秒
-
(已锁定)
Getting information about files4 分钟 45 秒
-
(已锁定)
About extended attributes3 分钟 38 秒
-
(已锁定)
Getting extended attributes3 分钟 55 秒
-
(已锁定)
Reading files5 分钟 24 秒
-
(已锁定)
Searching in files with grep7 分钟 25 秒
-
(已锁定)
Archiving files with tar and cpio9 分钟 10 秒
-
(已锁定)
Compressing files3 分钟 21 秒
-
(已锁定)
-
-