setfattr Command Examples

Set extended file attributes. More information: https://manned.org/setfattr.

setfattr {{[-n|--name]}} user.{{attribute_name}} {{path/to/file}}

setfattr {{[-n|--name]}} user.{{attribute_name}} {{[-v|--value]}} "{{value}}" {{path/to/file}}

setfattr {{[-x|--remove]}} user.{{attribute_name}} {{path/to/file}}