macos - 文件权限标志 @ 和 + 的用途是什么?

标签 macos permissions

我的 Mac 有文件夹 Shared 和 Public 文件夹。他们的权限是 drwxr-xr-x+(公共(public))和 drwxrwxrwt@(共享)。符号 + 和 @ 是什么意思?

最佳答案

@ 表示有“扩展属性”。类型

ls -l@

看看它们是什么。使用该命令,后面带有@ 的所有内容都会有一些额外的行来解释为什么它有@。根据我的经验,@ 通常意味着将使用默认应用程序以外的应用程序打开文件(即,它可能使用与您习惯不同的文本编辑器打开),或者有时它的编码与$LANG 指定的默认值。

从“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, the permissions field printed by the -l option is followed by a '+' character.

关于macos - 文件权限标志 @ 和 + 的用途是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/477050/

相关文章:

linux八进制权限加减法解释

git - 有什么方法可以限制开发人员访问 gitlab 或 github 中的特定文件夹?

ios - 什么是操作系统状态?

ios - 为什么 CoreAnimation 似乎在缓存表示层副本?

permissions - maven-rpm-plugin 在映射时设置文件夹权限与文件不同

asp.net - 在 Windows 任务计划程序中创建/修改任务所需的权限

java - 想要隐藏/删除屏幕菜单栏

swift - 使用 NSAttributedString 绘图时在非视网膜 Mac 上呈现模糊字体

objective-c - cocoa 应用程序小菜单中的垂直 slider ?

C# 本地共享的文件/目录权限