[BACK]Return to setfattr.1 CVS log [TXT][DIR] Up to [Development] / xfs-cmds / attr / man / man1

File: [Development] / xfs-cmds / attr / man / man1 / setfattr.1 (download)

Revision 1.3, Mon Feb 25 23:11:05 2002 UTC (15 years, 8 months ago) by nathans
Branch: MAIN
Changes since 1.2: +13 -13 lines

Merge of xfs-cmds-2.4.18:slinx:112587a by nathans.

  redo short/long options in the way Andreas intended, and fix up man pages.

.TH SETFATTR 1 "Extended Attributes" "Dec 2001" "File Utilities"
.SH NAME
setfattr \- set extended attributes of filesystem objects
.SH SYNOPSIS
.nf
\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
\f3setfattr\f1 [\f3\-\-version\f1]
.fi
.SH DESCRIPTION
The 
.B setfattr
command is used to associate a new
.I value
with an extended attribute
.IR name
for each specified file.
.SS OPTIONS
.TP 4
.BR \-n " \f2name\f1, " \-\-name "=\f2name\f1"
Set the value of the named extended attribute extended attribute.
.TP
.BR \-h ", " \-\-no-dereference
Do not follow symlinks - if
.I pathname
is a symbolic link, it is not followed, but is instead itself the
inode being modified.
.TP
.BR \-x " \f2name\f1, " \-\-remove "=\f2name\f1"
Remove the named extended attribute entirely.
.TP
.BR \-v " \f2value\f1, " \-\-value "=\f2value\f1"
Specifies the new value for the named extended attribute.
.TP
.BR \-\-restore =\f2file\f1
Restores extended attributes using values from the specified file.
The file must be in the format generated by the
.B getfattr
command.
The file name
.I \-
may be used in conjunction with this option, to specify the
standard input stream to be used rather than a named file.
.TP
.B \-\-version
Print the version of
.B setfattr
and exit.
.TP
.B \-\-help
Print help explaining the command line options.
.TP
.B \-\-
End of command line options.
All remaining parameters are interpreted as file names, even if they
start with a dash character.
.SH AUTHOR
Andreas Gruenbacher,
.RI < a.gruenbacher@computer.org >
and the SGI XFS development team,
.RI < linux-xfs@oss.sgi.com >.
.P
Please send your bug reports or comments to these addresses.
.SH "SEE ALSO"
getfattr(1), and attr(5).