SYNOPSIS
tty [
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 2000. Windows XP. Windows Server 2003. Windows Vista.
The POSIX standard considers the
AVAILABILITY
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.2 Documentation Build 16.