mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-14 19:01:35 +03:00
24 lines
504 B
Markdown
24 lines
504 B
Markdown
# xattr
|
|
|
|
> Utility to work with extended filesystem attributes.
|
|
|
|
- List key:value extended attributes for a given file:
|
|
|
|
`xattr -l {{file}}`
|
|
|
|
- Write an attribute for a given file:
|
|
|
|
`xattr -w {{attribute_key}} {{attribute_value}} {{file}}`
|
|
|
|
- Delete an attribute from a given file:
|
|
|
|
`xattr -d {{com.apple.quarantine}} {{file}}`
|
|
|
|
- Delete all extended attributes from a given file:
|
|
|
|
`xattr -c {{file}}`
|
|
|
|
- Recursively delete an attribute in a given directory:
|
|
|
|
`xattr -rd {{attribute_key}} {{directory}}`
|