OS Manuals

/usr/bin/getfattr

utilities for managing filesystem extended attributes

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

getfattr 2.6.0 -- get extended attributes
Usage: getfattr [-hRLP] [-n name|-d] [-e en] [-m pattern] path...
  -n, --name=name         get the named extended attribute value
  -d, --dump              get all extended attribute values
  -e, --encoding=...      encode values (as 'text', 'hex' or 'base64')
  -m, --match=pattern     only get attributes with names matching pattern
      --only-values       print the bare values only
  -h, --no-dereference    do not dereference symbolic links
      --one-file-system   skip files on different filesystems
      --absolute-names    don't strip leading '/' in pathnames
  -R, --recursive         recurse into subdirectories
  -L, --logical           logical walk, follow symbolic links
  -P  --physical          physical walk, do not follow symbolic links
      --version           print version and exit
      --help              this help text
Options (13)
OptionDescriptionSource
-n, --name nameDump the value of the named extended attribute.help + man
-d, --dumpDump the values of all matched extended attributes.help + man
-e, --encoding ...encode values (as 'text', 'hex' or 'base64')help + man
-m, --match patternOnly include attributes with names matching the regular expression pattern.help + man
--only-valuesDump out the raw extended attribute value(s) without encoding them.help + man
-h, --no-dereferencedo not dereference symbolic linkshelp + man
--one-file-systemskip files on different filesystemshelp
--absolute-namesDo not strip leading slash characters ('/').help + man
-R, --recursiveList the attributes of all files and directories recursively.help + man
-L, --logicalLogical walk, recurse into symbolic links that refer to a directory.help + man
-P, --physicalPhysical walk, do not recurse into symbolic links that refer to a directory.help + man
--versionPrint the version of getfattr and exit.help + man
--helpPrint help explaining the command line options.help + man

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