-1

What does mean number near extended attributes in ls -l@ output and how i can get it?

drwxr-xr-x@ 41 root  wheel         1394 Nov  7 14:50 bin
com.apple.FinderInfo      32 //this number
com.apple.rootless     0 //and this
Gerhardh
  • 11,688
  • 4
  • 17
  • 39
EmanRuoy
  • 77
  • 1
  • 2
  • 9

2 Answers2

1

This is MacOS specific I think. Maybe you want to take a look at the xattr command here. The number displayed by ls is the size in bytes of the attribute. The meaning of the value of a particular attribute is arbitrary (as is the set of extended attributes a file may have) and really depends on the attribute itself.

To be consistent with your question tags, you can also access extended attributes programatically from C by including sys/xattr.h.

Sergio Feo
  • 292
  • 2
  • 7
1

This number means sizeof extended attribute in bytes. You can get it by getxattr from sys/xattr.h

EmanRuoy
  • 77
  • 1
  • 2
  • 9