macoscommand-linemetadataextended-properties

Writing extended attributes to files on OS X


I am trying to use the setfattr command in the command line, but it tells me command not found. I'm assuming this means that the package is not installed, however from what I understand OSX should have extended attributes enabled by default. Any ideas?


Solution

  • There is no such command as setfattr. Maybe that's a typo for setxattr or fsetxattr, but those aren't commands either, they are C APIs. The command you want is xattr.