mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-08 11:15:41 +02:00
xattr: add page (#895)
This commit is contained in:
parent
a84285affc
commit
da1ac91081
1 changed files with 23 additions and 0 deletions
23
pages/osx/xattr.md
Normal file
23
pages/osx/xattr.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# xattr
|
||||||
|
|
||||||
|
> Utility for use 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 {{attribute_key}} {{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}}`
|
Loading…
Add table
Reference in a new issue