lsitab Command

Purpose

Lists records in the /etc/inittab file.

Syntax

lsitab { -a | Identifier }

Description

The lsitab command displays a record in the /etc/inittab file. You can display all of the records in the /etc/inittab file, or use the Identifier parameter to display a specific record. The Identifier parameter is a 14-character field that uniquely identifies an object.

Flags

Item Description
-a Specifies that all records in the /etc/inittab file are listed.

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 display the record for tty2, enter:
    lsitab "tty002"
    The output is similar to: tty002:2:respawn:/usr/sbin/getty /dev/tty2
  2. To display all of the records in the /etc/inittab file, enter:
    lsitab -a
    All of the records in the /etc/inittab file are displayed.

Files

Item Description
/etc/inittab Indicates which processes the init command starts.