getea Command

Purpose

Retrieves named extended attributes from a file.

Syntax

getea [-n Name] [ -l ] [-e RegExp] [-s] FileName

Description

The getea command reads named extended attributes from a file. If the -n Name parameter is specified then just extended attributes matching Name are retrieved.

Note: To prevent naming collisions, JFS2 has reserved the 8-character prefix (0xf8)SYSTEM(0xF8) for system-defined extended attributes. Avoid using this prefix for naming user-defined extended attributes.

If the -e RegExp parameter is specified then just extended attributes matching the regular expression RegExp are retrieved. If neither -n or -e flags are specified all extended attributes are retrieved.

This command is not used to get ACLs. The aclget command is used to get ACLs.

Flags

Item Description
-e RegExp Specifies a regular expression to retrieve all extended attributes which match. The values are displayed in character format.
-l Specifies to get the extended attributes from the symbolic link itself rather than the file to which it is pointing.
-n Name Specifies the name of specific extended attributes to retrieve. The values are displayed in character format.
-s Displays only the names and not the values for the extended attributes.
FileName Specifies the file from which to read the extended attributes.

Exit Status

Item Description
0 Successful completion.
Positive integer An error occurred.

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX® Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To retrieve all named extended attributes for the file design.html, type:
    getea design.html
  2. To retrieve the named extended attribute, Approver, for the file design.html, type:
    getea -n Approver design.html
  3. To retrieve just the names of all named extended attributes for the file design.html, type:
    getea -s design.html
  4. To retrieve all named extended attributes for the symbolic link design.html, type:
    getea -l design.html

Location

/usr/sbin