我tar
在 Windows 和untar
RHEL 机器上有一个文件夹。
ls -l
显示.
文件模式,文件夹为blue + yellow background
.
[root@xt-storage-01 apache-tomcat-8.0.5]# ls -l
total 120
drwxrwxrwx. 2 root root 4096 Jul 24 11:18 bin
drwxrwxrwx. 2 root root 4096 Jul 24 11:18 conf
drwxrwxrwx. 2 root root 4096 Jul 24 11:18 lib
.
文件末尾模式是什么意思?
答案1
它表明这些文件具有SELinux
安全上下文。
从info ls
:
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.