打开mac terminal工具输入ls -l 发现文件权限格式与linux稍有不同,权限末尾有”+“或”@“符号:
drwx------ 6 fff staff 204 11 Aug 15:13 Daily
drwx------+ 12 fff staff 408 11 Aug 21:19 Downloads
drwx------+ 7 fff staff 238 11 Aug 21:35 Desktop
drwx------@ 12 fff staff 408 11 Aug 22:14 Courses
man ls查看说明:
If the file or directory has extended attributes, the permissions field printed by the -l
option is followed by a '@' character. Otherwise, if the file or directory has extended security
information (such as an access control list), the permissions field printed by the -l option is fol-
lowed by a '+' character.
那么到底什么是”extended attributes“ 和 ”extended security“呢?
执行 ls -le 查看extended security:
drwx----

在MAC系统中,通过终端使用ls -l命令查看文件权限时,会发现权限末尾可能出现'+'或'@'符号。'+'通常表示文件有额外的ACL(访问控制列表)权限,而'@'则指示文件具有扩展属性。进一步使用ls -le和ls -l@可以分别查看extended security和文件的扩展属性详情,例如KMDItemUserTags对应MAC的标签功能,FinderInfo涉及权限设置,Quarantine则是MAC 10.5引入的安全特性。
最低0.47元/天 解锁文章
695

被折叠的 条评论
为什么被折叠?



