通过man ls,对-Z参数的结束如下:
-Z, --context
Display security context so it fits on most displays. Displays only mode,
user, group, security context and file name.
然后:
[root@maomao43 /]# ls -Z
system_u
bject_r:bin_t:s0 bin system_u:object_r:mnt_t:s0 mnt
system_u:object_r:boot_t:s0 boot ? nfs_test
? data system_u:object_r:usr_t:s0 opt
? dev ? proc
system_u:object_r:etc_t:s0 etc root:object_r:user_home_dir_t:s0 root
? export system_u:object_r:sbin_t:s0 sbin
system_u:object_r:home_root_t:s0 home system_u:object_r:file_t:s0 selinux
system_u:object_r:lib_t:s0 lib system_u:object_r:var_t:s0 srv
system_u:object_r:lib_t:s0 lib64 ? sys
? linux3.xml system_u:object_r:tftpdir_t:s0 tftpboot
? lost+found system_u:object_r:tmp_t:s0 tmp
system_u:object_r:mnt_t:s0 media system_u:object_r:usr_t:s0 usr
system_u:object_r:mnt_t:s0 misc system_u:object_r:var_t:s0 var
但还是不明白里面的system_u、object_r、mnt_t、s0这些是什么意思呢?