Writes the name of the current console device to standard output.
The lscons command writes the name of the current console device to standard output. This command is also used to write the name of the device that is to be the console on the next start of the system to standard output. You can change the current console device using the swcons command. You can change the device to be the system console on the next start of the system using the chcons command.
-a | Displays a list of attribute name = attribute value pairs for the console device and console logging and
tagging attributes. When used with the -b flag, the values are retrieved from the ODM. Without the -b
flag, the values are retrieved from the console device driver. For additional information about console output
logging and tagging, see the console Special File in the
AIX Version 4.3 Files Reference book.
Note: This flag is not valid with the -O flag or the -d flag. |
-b | Displays the full path name of the system console selected for the next startup of the system. |
-d | Displays the full path name of the system console selected on the current startup of the system.
Note: This flag is not valid with the -O flag or the -a flag. |
-O | Similar to the -a flag but outputs the attribute names and values in a format suitable for use by SMIT.
This flag is NOT valid with the -d flag.
Note: This flag is not valid with the -d flag or the -a flag. |
-s | Suppresses reporting of the path name. |
This command returns the following exit values:
lscons
lscons -b
lscons -d
if lscons -s echo "System messages are directed to my display" >/dev/tty fi
/usr/sbin/lscons | Contains the lscons command. |
The chcons command, swcons command.
The console special file.