tty − get terminal name
tty
Tty prints the pathname of the user’s terminal.
’not a tty’ if the standard input file is not a terminal.