Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ls -l@ 输出中扩展属性附近的数字是什么意思以及我如何获得它?
drwxr-xr-x@ 41 root wheel 1394 Nov 7 14:50 bin com.apple.FinderInfo 32 //this number com.apple.rootless 0 //and this
我认为这是特定于 MacOS 的。也许你想看看这里xattr的命令。显示的数字是属性的字节大小。特定属性值的含义是任意的(文件可能具有的扩展属性集也是如此),并且实际上取决于属性本身。ls
xattr
ls
为了与您的问题标签保持一致,您还可以通过包含以编程方式从 C访问扩展属性sys/xattr.h。
sys/xattr.h
此数字表示扩展属性的大小(以字节为单位)。你可以getxattr从sys/xattr.h
getxattr