logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

xattr - sets or lists extended attributes on a file or directory

Author

       xattr was written by Bob Ippolito <bob@redivi.com>.

       This manual page was written by Federico Ceratto, for the Debian project (and may be used by others).

                                                  May  8, 2010                                          XATTR(1)

Description

       This manual page documents briefly the xattr command.

       The first form lists the names of all xattrs on the given file(s).
       The second form (-p) prints the value of the xattr attr_name.
       The third form (-w) sets the value of the xattr attr_name to attr_value.
       The fourth form (-d) deletes the xattr attr_name.

Examples

xattr-wuser.mykeymyvaluemyfilexattr-puser.mykeymyfilexattr-duser.mykeymyfile

Name

       xattr - sets or lists extended attributes on a file or directory

Options

       A summary of options is included below.

       -h     Show summary of options.

       -l     Print long format (attr_name: attr_value) when listing xattrs.

       -z     Compress or decompress (if compressed) attribute value in zip format.

See Also

       The Python module "xattr"

Synopsis

xattr [ -lz ] filename [ filename ... ]
       xattr-p [ -lz ] attr_namefilename [ filename ... ]
       xattr-w [ -z ] attr_nameattr_valuefilename [ filename ... ]
       xattr-dattr_namefilename [ filename ... ]

See Also