tty (unix)
In computing, tty is a command in Unix and Unix-like operating systems to print the file name of the terminal connected to standard input.[1]
Initial release | November 3, 1971 |
---|---|
Operating system | Unix and Unix-like |
Type | Command |
tty stands for TeleTYpewriter.[2]
Usage
The tty
command is commonly used to check if the output medium is a terminal. The command prints the file name of the terminal connected to standard input. If no file is detected (in case, it's being run as part of a script or the command is being piped) "not a tty
" is printed to stdin and the command exits with an exit status of 1. The command also can be run on silent mode (tty -s
) where no output is produced, and the command exits with an appropriate exit status.[3]
gollark: Technically speaking, under the HTML5 spec *any* string is valid HTML.
gollark: If your thing can parse HTML, it is not a *regular* expression as much as a *weird insane* expression.
gollark: > ...did I just make a regex that parses htmlNo. This is impossible.
gollark: I was testing experimental APIO-413 error handling.
gollark: --exec --bees ```pythonprint("--remind 1m test")```
See also
References
- "tty". pubs.opengroup.org. Retrieved 2020-02-14.
- "What does "TTY" stand for?". Ask Ubuntu. Retrieved 2020-02-14.
- "tty(1) - Linux man page". linux.die.net. Retrieved 2020-02-14.
External links
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.