Writes the name of the current console device to standard output.
lscons [ -b ] [ -d ] [ -s ]
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.
|-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.|
|-s||Suppresses reporting of the path name.|
This command returns the following exit values:
|0||The device you are using is the current system console.|
|1||The device you are using is not the current system console.|
|2||The device you are using is the console device selected at system start but is not currently the device supporting console message output.|
|3||Flags specified are not valid.|
|4||System error occurred.|
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.