OS Manuals

/usr/bin/setfattr

utilities for managing filesystem extended attributes

From attr 2.6.0-r6 (os), captured 2026-11-05 by running setfattr --help (exit 0). permalink

setfattr 2.6.0 -- set extended attributes
Usage: setfattr {-n name} [-v value] [-h] file...
       setfattr {-x name} [-h] file...
       setfattr [-hP] --restore=file
  -n, --name=name         set the value of the named extended attribute
  -x, --remove=name       remove the named extended attribute
  -v, --value=value       use value as the attribute value
  -h, --no-dereference    do not dereference symbolic links
  -P, --physical          do not traverse symbolic links during a restore
      --restore=file      restore extended attributes
      --raw               attribute value is not encoded
      --version           print version and exit
      --help              this help text
Options (9)
OptionDescriptionSource
-n, --name nameSpecifies the name of the extended attribute to set.help + man
-x, --remove nameRemove the named extended attribute entirely.help + man
-v, --value valueSpecifies the new value of the extended attribute.help + man
-h, --no-dereferencedo not dereference symbolic linkshelp + man
-P, --physicalDo not traverse symbolic links in pathnames during a restore.help + man
--restore fileRestores extended attributes from file.help + man
--rawDo not decode the attribute value.help + man
--versionPrint the version of setfattr and exit.help + man
--helpPrint help explaining the command line options.help + man
Examples (2) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.