tty (Unix)
From Wikipedia, the free encyclopedia
tty is a Unix command that prints to standard output the name of the file connected to standard input. The name of the program comes from teletypewriter, abbreviated "TTY".
When the program runs, it will produce something like this:
% tty /dev/pts/4