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

What is dot in ls -l command on Linux?

我 运行 ls -l 我的 centOS 6.10 一个特定的文件。

我的问题是1之前的这个点(.)是什么意思?

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

这意味着该文件具有 SELinux 上下文。使用 ls -Z 查看实际的 SElinux 上下文值。它记录在 GNU Coreutils 的“信息”文件中:What-information-is-listed.

相关引用:

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 an SELinux security context, but no other alternate access method.

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

关注link了解更多详情