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?相关推荐
- linux tty连wifi,打通linux的tty驱动的数据链路
一.首先把tty驱动在linux中的分层结构理清楚: 自上而下分为TTY核心层.TTY线路规程.TTY驱动. 二.TTY核心层与线路规程层分析 用户空间的程序直接对tty核心层进行读写等相关操作,在t ...
- linux怎么看tty连接哪个端口,Linux TTY framework(4)_TTY driver
Linux TTY framework(4)_TTY driver 作者:wowo 发布于:2016-10-25 22:40 分类:TTY子系统 1. 前言 本文将从驱动工程师的角度去看TTY fra ...
- linux设备模型之tty驱动架构分析,linux设备模型之uart驱动架构分析
五: uart_add_one_port()操作本文引用地址:http://www.eepw.com.cn/article/201610/305916.htm 在前面提到.在对uart设备文件过程中. ...
- linux的tty模式怎么用,Linux下的tty的使用
1.查看机器目前所有的在运行的TTY [root@localhost ~]# w 05:49:15 up 23 min, 3 users, load average: 0.00, 0.04, 0.08 ...
- Linux tty 终端设备驱动
在Linux系统中,终端设备非常重要,没有终端设备,系统将无法向用户反馈信息,Linux中包含控制台.串口和伪终端3类终端设备. 14.1终端设备在Linux系统中,终端是一种字符型设备,它有多种类型 ...
- Linux TTY Driver
引用 蜗窝科技-tty驱动分析 彻底理解Linux的各种终端类型以及概念 - dog250 Linux终端和Line discipline图解 - dog250 Linux设备驱动-tty驱动 - 看 ...
- linux TTY子系统(2) -- 软件框架
了解tty 子系统 1.TTY的子系统 在Linux kernel中,TTY就是各类终端(Terminal)的简称.为了简化终端的使用,以及终端驱动程序的编写,Linux kernel抽象出了TT ...
- 2.9 Linux tty终端
Linux在内核启动完成以后,需要启动用户态的各种应用服务,让linux可以提供给用户使用.通常用户程序的执行过程如图所示. 其执行顺序是/sbin/init --–>/sbin/mingett ...
- 乾坤合一~Linux设备驱动之终端设备驱动
多想拥你在我的怀里 却无法超越那距离 美好回忆渐渐地远去 盼望今生出现奇迹 无尽的想念 荒了容颜 无助的爱恋 从未改变 这是今天的旋律,,,,今生今世,遥不可及~ 1 终端设备 终端是一种字符型设备, ...
最新文章
- 汉诺塔怎么加计数次数c语言,C语言计算汉诺塔最小移动步数 (二)
- 流程快速开发平台,工作流引擎中间件,工作质量考核设计
- 手把手教你实现一个 AdaBoost
- 数组中的元素赋值给元素_漫画:寻找无序数组的第k大元素
- altium恢复所有默认设置_windows10技巧 恢复出厂状态的4种方法
- Ocean的礼物(线段树单点修改)
- C#调用SSIS包及读取DataReader目标
- C语言笔记(关键字)
- c语言中整型数组如何初始化,C语言数组空间的初始化详解
- C++学习之基本概念
- 关于cocos2dx 3.x版本移植 dragonbones 4.5版本的解决方案
- 数据元和元数据的区别
- [zz]大师,一个专注的“疯子”
- 由于应用universal link 校验不通过 ios应用升级SDK 更换Universal Links校验
- task7b-TP53突变与否的TNBC病人基因表达相关性改变
- Android studio db文件导出 DDMS
- 多部民族电影在移动电影院App首映发布成功
- 写 Python 爬虫的助手
- RFID技术应用及其发展趋势分析
- 浅谈:前端如何赋能业务?