Skip to main content

Utility to work with extended filesystem attributes.

# To list key:value extended attributes for a given file:
xattr -l <file>

# To write an attribute for a given file:
xattr -w <attribute_key> <attribute_value> <file>

# To delete an attribute from a given file:
xattr -d <com.apple.quarantine> <file>

# To delete all extended attributes from a given file:
xattr -c <file>

# To recursively delete an attribute in a given directory:
xattr -rd <attribute_key> <directory>