tty

display terminal name 

Command


SYNOPSIS

tty [-s]


DESCRIPTION

tty displays the file name of the terminal device associated with the standard input.

Options

-s 

does not display the name; the exit status of tty indicates whether or not the standard input is a terminal.


DIAGNOSTICS

Possible exit status values are:

0 

Standard input is a terminal.

1 

Standard input is not a terminal.

2 

Failure because of unknown command line option, or too many arguments.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems. Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.

The POSIX standard considers the -s option to be obsolete.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


PTC MKS Toolkit 10.1 Documentation Build 15.