tty - print the device name of this tty
tty [-s]
-s Silent mode, only the exit status is affected.
tty # Print the tty name
Print the name of the controlling tty. If the flag -s is given, tty is equivalent to the call test -t 0.
ttyname(3).