centos 什么是Linux上ls -l命令中的点?

6xfqseft  于 2022-11-07  发布在  Linux
关注(0)|答案(1)|浏览(170)

我在我的centOS 6.10上对一个特定的文件运行了ls -l
我的问题是,1前面的这个点(.)是什么意思?

-rw-r--r--. 1 root root  575 Oct 23
olqngx59

olqngx591#

这意味着该文件有一个SELinux上下文。使用ls -Z查看实际的SElinux上下文值。它在GNU Coreutils的“info”文件中有说明:列出了哪些信息。
相关引述:

Following the file mode bits is a single character that specifies
 whether an alternate access method such as an access control list
 applies to the file.  When the character following the file mode
 bits is a space, there is no alternate access method.  When it is a
 printing character, then there is such a method.

 GNU ‘ls’ uses a ‘.’ character to indicate a file with a security
 context, but no other alternate access method.

 A file with any other combination of alternate access methods is
 marked with a ‘+’ character.

点击链接了解更多详细信息

相关问题