Each login session has its own- a UNIX device file that handles input and output for your terminal, window, etc. Each tty has its own filename. If you're logged on more than once and other users want to to you, they need to know which tty to use. If you have processes running on several ttys, you can tell which process is where.
You can tell other users to type
Some systems have different kinds of ttys: a few dialup terminals, some
network ports for
x is a
single digit or letter.
I have a test in my
that clears the screen and prints a
on all ttys except network:
# Clear screen and print fortune on non-network ttys: if ("`tty`" !~ /dev/tty[pq]*) then clear fortune endif
|tty||The GNU version of tty is on the CD-ROM.|