Linux getty命令

更新时间: 2019-10-16 12:40

Linux getty命令用于设置终端机模式,连线速率和管制线路。

getty指令是UNIX之类操作系统启动时所必须的3个步骤之一。

语法

getty [-h][-d<组态配置文件>][-r<延迟秒数>][-t<超时秒数>][-w<等待字符串>][终端机编号][连线速率<终端机类型><管制线路>] 或 getty [-c<定义配置文件>]

参数

  • -c<定义配置文件> 指定定义配置文件,预设为/etc/gettydefs。
  • -d<组态配置文件> 指定组态配置文件,预设为/etc/conf.getty。
  • -h 当传输速率为0时就强制断线。
  • -r<延迟秒数> 设置延迟时间。
  • -t<超时秒数> 设置等待登入的时间。
  • -w<等待字符串> 设置等待回应的字符串。

实例

开启终端:

# getty tty7
Head First Mobile Web

Head First Mobile Web

Lyza Danger Gardner、Jason Grigsby / O'Reilly Media / 2011-12 / $ 50.84

Despite the huge number of mobile devices and apps in use today, your business still needs a website. You just need it to be mobile. Head First Mobile Web walks you through the process of making a con......一起来看看 《Head First Mobile Web》 这本书的介绍吧!

图片转BASE64编码

图片转BASE64编码

在线图片转Base64编码工具

Markdown 在线编辑器

Markdown 在线编辑器

Markdown 在线编辑器

正则表达式在线测试

正则表达式在线测试

正则表达式在线测试