File: coreutils.info, Node: tty invocation, Prev: printenv invocation, Up: Working context
19.4 'tty': Print file name of terminal on standard input
=========================================================
'tty' prints the file name of the terminal connected to its standard
input. It prints 'not a tty' if standard input is not a terminal.
Synopsis:
tty [OPTION]...
The program accepts the following option. Also see *note Common
options::.
'-s'
'--silent'
'--quiet'
Print nothing; only return an exit status.
Exit status:
0 if standard input is a terminal
1 if standard input is not a terminal
2 if given incorrect arguments
3 if a write error occurs
Generated by $Id: phpMan.php,v 4.55 2007/09/05 04:42:51 chedong Exp $ Author: Che Dong
On Apache/2.4.6 (CentOS)
Under GNU General Public License
2025-06-23 22:03 @127.0.0.1 CrawledBy Wget/1.21.2