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


tty is as specified in the Single UNIX Specification but with differences as listed below.

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.

--silent, --quiet

is equivalent to -s.


is equivalent to -d.


is equivalent to -s.


outputs version information and exits.