setfattr(1)


NAME

   setfattr - set extended attributes of filesystem objects

SYNOPSIS

   setfattr [-h] -n name [-v value] pathname...
   setfattr [-h] -x name pathname...
   setfattr [-h] --restore=file

DESCRIPTION

   The  setfattr command associates a new value with an extended attribute
   name for each specified file.

OPTIONS

   -n name, --name=name
       Specifies the name of the extended attribute to set.

   -v value, --value=value
       Specifies the new value of the extended attribute. There are  three
       methods  available  for encoding the value.  If the given string is
       enclosed in double quotes, the inner string is treated as text.  In
       that  case, backslashes and double quotes have special meanings and
       need to be escaped by a preceding backslash. Any control characters
       can be encoded as a backslash followed by three digits as its ASCII
       code in octal. If the  given  string  begins  with  0x  or  0X,  it
       expresses  a hexadecimal number. If the given string begins with 0s
       or 0S, base64 encoding is expected.  See also the --encoding option
       of getfattr(1).

   -x name, --remove=name
       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=file
       Restores extended attributes from file.  The file must  be  in  the
       format  generated  by  the getfattr command with the --dump option.
       If a dash (-) 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@bestbits.at>  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).


More Linux Commands

manpages/glRectf.3gl.html
glRectf(3gl) - draw a rectangle (Library - Linux man page)
glRect supports efficient specification of rectangles as two corner points. Each rectangle command takes four arguments, organized either as two consecutive pai

manpages/freshclam.1.html
freshclam(1) - update virus databases - Linux manual page...
freshclam is a virus database update tool for ClamAV. OPTIONS Freshclam reads its configuration from freshclam.conf. The settings can be overwritten with comman

manpages/ferror.3.html
ferror(3) - check and reset stream status - Linux man page
The function clearerr() clears the end-of-file and error indicators for the stream pointed to by stream. The function feof() tests the end-of-file indicator for

manpages/sepermit.conf.5.html
sepermit.conf(5) - configuration file for the pam_sepermit m
The lines of the configuration file have the following syntax: &lt;user&gt;[:&lt;option&gt;:&lt;option&gt;...] The user can be specified in the following manner: * a username * a

manpages/fputws.3.html
fputws(3) - write a wide-character string to a FILE stream
The fputws() function is the wide-character equivalent of the fputs(3) function. It writes the wide-character string starting at ws, up to but not including the

manpages/gnutls_global_set_log_function.3.html
gnutls_global_set_log_function(3) - API function (Man Page)
This is the function where you set the logging function gnutls is going to use. This function only accepts a character array. Normally you may not use this func

manpages/XDGASetViewport.3.html
XDGASetViewport(3) - Client library for the XFree86-DGA exte
The XFree86-DGA extension is an X server extension for allowing client programs direct access to the video frame buffer. This is a brief description of the prog

manpages/sntp.1.html
sntp(1) - standard SNTP program (Commands - Linux man page)
This manual page briefly documents the sntp command. sntp can be used as a SNTP client to query a NTP or SNTP server and either display the time or set the loca

manpages/lreplace.n.html
lreplace(n) - Replace elements in a list with new elements
lreplace returns a new list formed by replacing one or more elements of list with the element arguments. first and last are index values specifying the first an

manpages/getlist.1.html
getlist(1) - Get a list from an NNTP server - Linux man page
getlist obtains a list from an NNTP server and sends it to standard output. list may be one of active (which is the default value), active.times, distrib.pats,

manpages/ts.1ssl.html
ts(1ssl) Time Stamping Authority tool (client server).......
The ts command is a basic Time Stamping Authority ( TSA ) client and server application as specified in RFC 3161 (Time-Stamp Protocol, TSP ). A TSA can be part

manpages/krb.equiv.5.html
krb.equiv(5) - Kerberos equivalences - Linux manual page....
krb.equiv contains zero or more lines, each of which describes a mapping of a kerberos principal (userid@host) to a local user (userid or alias). Each line of t





We can't live, work or learn in freedom unless the software we use is free.