ls -l输出中的-rwxr-xr-x之后的点是什么意思?[重复]


10

点“。”的含义是什么 在第二行的最后一个(最右边的)“ x”之后?这是输出

[igor @ localhost〜] $ ls -l / usr / local / bin

-rwxr-xr-x  1 root root  113797 Aug 20 05:30 gpib
-rwxr-xr-x. 1 root root   30283 Jul 16 22:48 ibtest

不,这不是'ls -l'输出中的唯一点。有很多……但并非每一行。
(CentOS 6.4 32位)

Answers:


3

如果您看一下info ls What\ information,它会告诉您

文件模式位后面是单个字符,用于指定是否将替代访问方法(例如访问控制列表)应用于文件。当文件模式位后面的字符为空格时,没有替代的访问方法。当它是打印字符时,则存在这种方法。

GNU'ls'使用'。' 字符,用于指示具有SELinux安全上下文的文件,但没有其他替代访问方法。

具有其他替代访问方法组合的文件将标有'+'字符。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.