From da1ac91081fac0efa3ae440c329ce19586b01a3e Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 20 Jun 2016 23:47:41 +0100 Subject: [PATCH] xattr: add page (#895) --- pages/osx/xattr.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/osx/xattr.md diff --git a/pages/osx/xattr.md b/pages/osx/xattr.md new file mode 100644 index 0000000000..8bb13a246c --- /dev/null +++ b/pages/osx/xattr.md @@ -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}}`