The Full Wiki

More info on Tty (Unix)

Tty (Unix): Wikis

Advertisements

Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

Encyclopedia

(Redirected to tty (Unix) article)

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 output something like this:

$ tty
/dev/pts/4

The pts indicates that it is a virtual terminal, with the number following it. If the program was run on a true tty, it would output something like this:

$ tty
/dev/tty2

External links

tty(1) – Linux User Commands Manual


Advertisements






Got something to say? Make a comment.
Your name
Your email address
Message