简体   繁体   English

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

[英]What is dot in ls -l command on Linux?

I ran ls -l on my centOS 6.10 on a specific file.我在特定文件上的centOS 6.10上运行ls -l

My question is what is the meaning of this dot( . ) before 1 ?我的问题是1之前的这个点( . )是什么意思?

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

It means that the file has an SELinux context.这意味着该文件具有 SELinux 上下文。 Use ls -Z to see the actual SElinux context values.使用ls -Z查看实际的 SElinux 上下文值。 It's documented on the "info" file for GNU Coreutils: What-information-is-listed .它记录在 GNU Coreutils 的“信息”文件中: What-information-is-listed

The relevant quote:相关报价:

 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.

Follow the link for more details点击链接了解更多详情

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM