What Does TTY Stand for in Linux?
2019獨角獸企業(yè)重金招聘Python工程師標準>>>
TTY is a Linux command, used at a command or shell prompt, that gives information about the terminal that a user is currently at. Typing "tty" at a Linux or Unix command prompt will yield a specific output unique to that terminal.History
-
"TTY" stands for "TeleType," in reference to the first computers, which were TeleType terminals. These terminals were essentially remote-controlled typewriters.
Benefits
-
Typing "tty" at a command prompt on Linux or Unix will give an output that identifies what device in the Linux /dev directory you are using, in only one line.
Fun Fact
-
When TeleType terminals were used, the "tty" command output was not shown on a display, but printed on a printer that was connected to the Teletype machine.
Usage
-
The "tty" command can be used to show the username, /dev device, date and time for the person who is using the computer by typing its sister command, "who am i."
Output Response
-
An example of a "tty" response can be something like "/dev/pts/0", which designates that the user is using device "/pts/0" but does not show any information about this device.
Read more: http://www.ehow.com/facts_5571810_tty-stand-linux.html#ixzz2zQ4oEYNe
其它:http://baike.baidu.com/view/749979.htm
http://www.ehow.com/facts_5571810_tty-stand-linux.html
cyper筆記:
一共有6個虛擬終端,Ctrl+Alt+F(1~6)可以打開, Alt+Left, Alt+Right可以來回切換, Ctrl+Alt+F7切回桌面.
第一個終端對應的文件是/dev/tty1, 可以用tty命令查看當前所處的終端
從桌面打開的終端名為/dev/pts/1, 多打開一個,后面的Number就加1,
向當前終端輸出hello可以用echo hello,也可以用echo hello > /dev/pts/1,
也可以給其它Terminal發(fā)送消息比如從桌面上的終端向tty1發(fā)消息,這樣寫就可以echo "hello this is from cyper" > /dev/tty1,
此時Ctrl+Alt+F1切過去就會發(fā)現屏幕上出現了那些字符
這里有篇不錯的文章:http://my.oschina.net/qefarmer/blog/201713
轉載于:https://my.oschina.net/uniquejava/blog/224336
總結
以上是生活随笔為你收集整理的What Does TTY Stand for in Linux?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PHP之SQL防注入代码(360提供)
- 下一篇: OPatch cannot find a