[ Previous |
Next |
Contents
| Glossary
| Home
| Search ]
AIX Version 4.3 Commands Reference, Volume 3
lscons Command
Purpose
Writes the name of the current console device to standard output.
lscons [ -b ] [ -d ] [ -s ]
Description
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.
Flags
-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. |
Exit Status
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. |
Examples
- To display the full path name of the current system console, enter:
lscons
- To display the full path name of the system console effective on the next startup of the system, enter:
lscons -b
- To display the full path name of the system console selected on the current startup of the system, enter:
lscons -d
- To test whether or not the current system console is directed to your display, enter:
if lscons -s
echo "System messages are directed to my display" >/dev/tty
fi
Files
/usr/sbin/lscons |
Contains the lscons command. |
Related Information
The chcons command, swcons command.
The console special file.
[ Previous |
Next |
Contents
| Glossary
| Home
| Search ]