Changes records in the /etc/inittab file.
chitab {Identifier : RunLevel : Action : Command }
The chitab command changes a record in the /etc/inittab file. The Identifier:Run Level:Action:Command parameter string is the new entry to the /etc/inittab file. You can search for a specific record by using fields in the Identifier portion of the parameter string. The command finds the specified Identifier and changes that record.
Note: The chitab command can not comment out an entry in the /etc/inittab file.
The Identifier:Run Level:Action:Command parameter string specifies a record in the /etc/inittab file where the following parameters apply:
Item | Description |
---|---|
Action | A 20-character parameter that informs the init command
how to process the Command parameter you specify. The init command recognizes the following actions:
|
|
|
|
|
|
|
Command | A 1024-character field specifying the shell command. |
Identifier | A 14-character parameter that uniquely identifies an object. The Identifier must be unique. If the Identifier is not unique, the command is unsuccessful. The Identifier cannot be changed; if you try to change it, the command is unsuccessful. |
RunLevel | A 20-character parameter defining the run levels in which the Identifier can be processed. Each process started by the init command can be assigned one or more run levels in which it can be started. |
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 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
To change the run level of a record for tty2, enter:
chitab "tty002:23:respawn:/usr/sbin/getty /dev/tty"
The quotes are required when the record being added has spaces or tabs.
Item | Description |
---|---|
/etc/inittab | Indicates which processes the init command starts. |