xattr

Utility to work with extended filesystem attributes. More information: https://keith.github.io/xcode-man-pages/xattr.1.html.

xattr -l file

xattr -w attribute_key attribute_value file

xattr -d com.apple.quarantine file

xattr -c file

xattr -rd attribute_key directory