日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

What Does TTY Stand for in Linux?

發(fā)布時(shí)間:2025/7/14 linux 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 What Does TTY Stand for in Linux? 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>

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個(gè)虛擬終端,Ctrl+Alt+F(1~6)可以打開, Alt+Left, Alt+Right可以來回切換, Ctrl+Alt+F7切回桌面.
第一個(gè)終端對應(yīng)的文件是/dev/tty1, 可以用tty命令查看當(dāng)前所處的終端

從桌面打開的終端名為/dev/pts/1, 多打開一個(gè),后面的Number就加1,
向當(dāng)前終端輸出hello可以用echo hello,也可以用echo hello > /dev/pts/1,
也可以給其它Terminal發(fā)送消息比如從桌面上的終端向tty1發(fā)消息,這樣寫就可以echo "hello this is from cyper" > /dev/tty1,
此時(shí)Ctrl+Alt+F1切過去就會(huì)發(fā)現(xiàn)屏幕上出現(xiàn)了那些字符

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

轉(zhuǎn)載于:https://my.oschina.net/uniquejava/blog/224336

總結(jié)

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

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。