System Grab Bag

View all TLDR pages from Mac OS X (or from all pages)

xattr

Utility to work with extended filesystem attributes. More information: https://ss64.com/osx/xattr.html.
  • List key:value extended attributes for a given file:
    xattr -l {{file}}
  • Write an attribute for a given file:
    xattr -w {{attribute_key}} {{attribute_value}} {{file}}
  • Delete an attribute from a given file:
    xattr -d {{com.apple.quarantine}} {{file}}
  • Delete all extended attributes from a given file:
    xattr -c {{file}}
  • Recursively delete an attribute in a given directory:
    xattr -rd {{attribute_key}} {{directory}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.