mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 15:49:14 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/setfattr
Normal file
21
tldr/linux/setfattr
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# setfattr
|
||||
|
||||
> Set extended file attributes.
|
||||
> More information: <https://manned.org/setfattr>.
|
||||
|
||||
- Set name of attribute for file:
|
||||
|
||||
`setfattr -n user.{{attribute_name}} {{path/to/file}}`
|
||||
|
||||
- Set a user-defined value of an extended attribute on a file:
|
||||
|
||||
`setfattr -n user.{{attribute_name}} -v "{{value}}" {{path/to/file}}`
|
||||
|
||||
- Remove a specific attribute of a file:
|
||||
|
||||
`setfattr -x user.{{attribute_name}} {{path/to/file}}`
|
||||
Reference in New Issue
Block a user