2024-10-02 21:36:31 +08:00
|
|
|
# setfattr
|
|
|
|
|
|
|
|
> Set extended file attributes.
|
|
|
|
> More information: <https://manned.org/setfattr>.
|
|
|
|
|
|
|
|
- Set name of attribute for file:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`setfattr {{[-n|--name]}} user.{{attribute_name}} {{path/to/file}}`
|
2024-10-02 21:36:31 +08:00
|
|
|
|
|
|
|
- Set a user-defined value of an extended attribute on a file:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`setfattr {{[-n|--name]}} user.{{attribute_name}} {{[-v|--value]}} "{{value}}" {{path/to/file}}`
|
2024-10-02 21:36:31 +08:00
|
|
|
|
|
|
|
- Remove a specific attribute of a file:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`setfattr {{[-x|--remove]}} user.{{attribute_name}} {{path/to/file}}`
|