SETFATTR 1 "Extended Attributes" "Dec 2001" "File Utilities"
NAME
setfattr - set extended attributes of filesystem objects
SYNOPSIS
\f3setfattr\f1 [\f3-h\f1] \f3-n name\f1 [\f3-v value\f1] \f3pathname\f1...
\f3setfattr\f1 [\f3-h\f1] \f3-x name\f1 \f3pathname\f1...
\f3setfattr\f1 [\f3-h\f1] \f3--restore=file\f1
DESCRIPTION
The setfattr command associates a new value with an extended attribute name for each specified file.
OPTIONS

4 -n " \f2name\f1, " --name "=\f2name\f1" Specifies the name of the extended attribute to set.

-v " \f2value\f1, " --value "=\f2value\f1" Specifies the new value for the extended attribute.

-x " \f2name\f1, " --remove "=\f2name\f1" Remove the named extended attribute entirely.

-h ", " --no-dereference Do not follow symlinks. If pathname is a symbolic link, it is not followed, but is instead itself the inode being modified.

--restore =\f2file\f1 Restores extended attributes from file. The file must be in the format generated by the getfattr command with the --dump option. If a dash (\c - ) is given as the file name, setfattr reads from standard input.

--version Print the version of setfattr and exit.

--help Print help explaining the command line options.

-- End of command line options. All remaining parameters are interpreted as file names, even if they start with a dash character.

AUTHOR
Andreas Gruenbacher, < a.gruenbacher@computer.org > and the SGI XFS development team, < linux-xfs@oss.sgi.com >.

Please send your bug reports or comments to these addresses.

"SEE ALSO"
getfattr(1), and attr(5).