The tty utility identifies the name of your terminal (Figure 4-31).
Utility: tty
tty displays the pathname of your terminal. It returns zero if its standard input is a terminal; otherwise, it returns 1.
In the following example, my login terminal was the special file "/dev/pts/1":
$ tty ...display the pathname of my terminal. /dev/pts/1 $ _