日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

What Does TTY Stand for in Linux?

發布時間:2025/7/14 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 What Does TTY Stand for in Linux? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

2019獨角獸企業重金招聘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發送消息比如從桌面上的終端向tty1發消息,這樣寫就可以echo "hello this is from cyper" > /dev/tty1,
此時Ctrl+Alt+F1切過去就會發現屏幕上出現了那些字符

這里有篇不錯的文章:http://my.oschina.net/qefarmer/blog/201713

轉載于:https://my.oschina.net/uniquejava/blog/224336

總結

以上是生活随笔為你收集整理的What Does TTY Stand for in Linux?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。