LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 884|回复: 5

ls -l 这是怎么回事?

[复制链接]
发表于 2011-1-23 03:01:11 | 显示全部楼层 |阅读模式
ls -l , 输出如下:
-rwxr-xr-x.  1 xuer xuer    1412  5月 26 2009 glibc和libc到底有什么区别
drwxr-xr-x  10 xuer xuer    4096  1月 21 05:45 gtk
drwxr-xr-x.  6 xuer xuer    4096  1月 19 02:24 Linux

为什么在权限字串的后面,有的文件有一个 “.” ,这是怎么回事?
 楼主| 发表于 2011-1-24 04:05:47 | 显示全部楼层
太基础了么,为什么没有人告诉我呢?
回复 支持 反对

使用道具 举报

发表于 2011-1-24 10:06:03 | 显示全部楼层
第一次看到带.的
知道d什么意思,可是.就不知道了
回复 支持 反对

使用道具 举报

发表于 2011-1-24 20:52:35 | 显示全部楼层
这个点表示的是存在“SELinux的安全标签”!
http://www.opsers.org/2011_01_1667.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-1-26 12:51:22 | 显示全部楼层
Post by 相思爱文;2126597
这个点表示的是存在“SELinux的安全标签”!
http://www.opsers.org/2011_01_1667.html


谢谢!

现在想想应该是这样! 带.的都是我用 CentOS 时的文件.
回复 支持 反对

使用道具 举报

发表于 2011-1-26 13:49:03 | 显示全部楼层
Coreutils手册中有提到:
http://www.gnu.org/software/core ... .html#ls-invocation

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.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表