tty - print the file name of the terminal connected to standard input

$ tty
/dev/pts/0

To Print nothing, only return an exit status.
$ tty -s



regards,
T.Dhanasekar