attr
Manipulate extended attributes on filesystem objects. tldr-pages
On several platforms
Several platforms
List the names and sizes of all extended attributes of a file
attr -l path/to/fileIdentifyGet the value of an extended attribute
attr -g attribute_name path/to/fileIdentifySet an extended attribute value
attr -s attribute_name -V "attribute_value" path/to/fileIdentifySet an extended attribute using a value from stdin
echo "attribute_value" | attr -s attribute_name path/to/fileIdentifyRemove an extended attribute
attr -r attribute_name path/to/fileIdentify