Displaying console names
To write the name of the current console device to standard output (usually your screen), use the lscons command.
For example, at the prompt, type the following:
lscons
The system displays output similar to the following:
/dev/lft0
See the lscons command for the complete syntax.