tty (Unix)

From Wikipedia, the free encyclopedia

Jump to: navigation, search

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

[edit] External links

tty(1) – Linux man page

Personal tools
Languages