Options (3)
-n, --namebooleanSet name of attribute for file
Example:
setfattr {{[-n|--name]}} user.{{attribute_name}} {{path/to/file}}-v, --valuebooleanSet a user-defined value of an extended attribute on a file
Example:
setfattr {{[-n|--name]}} user.{{attribute_name}} {{[-v|--value]}} "{{value}}" {{path/to/file}}-x, --removebooleanRemove a specific attribute of a file
Example:
setfattr {{[-x|--remove]}} user.{{attribute_name}} {{path/to/file}}Examples (3)
Set name of attribute for file
setfattr [-n|--name] user.attribute_name path/to/fileSet a user-defined value of an extended attribute on a file
setfattr [-n|--name] user.attribute_name [-v|--value] "value" path/to/fileRemove a specific attribute of a file
setfattr [-x|--remove] user.attribute_name path/to/filemade by @shridhargupta | data from tldr-pages