Displaying the terminal name (tty command)

To display the name of your terminal, use the tty command.

For example, at the prompt, type the following:
tty
The system displays information similar to the following:
/dev/tty06
In this example, tty06 is the name of the terminal, and /dev/tty06 is the device file that contains the interface to this terminal.