博客
关于我
Linux 系统设置 : reset 命令详解
阅读量:271 次
发布时间:2019-03-01

本文共 676 字,大约阅读时间需要 2 分钟。

reset命令与tset命令功能相同,主要用于设定终端机的状态。该命令通常根据环境变量、命令序列或其他配置文件来确定终端机的当前状态。如果指定的状态为?,则会提示用户输入终端机的类型。

由于该命令能够将终端机恢复到原始状态,除了登录时的设定外,它也非常有用。当系统或程序导致终端机进入异常状态时(例如不小心通过cat命令进入二进制档),你可以使用reset命令将终端机恢复到正常状态。

语法

tset [-IQqrs] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal]

参数说明:

  • -p:显示当前终端机的类型,但不进行设置。
  • -e ch:将erase字符设定为ch
  • -i ch:将interrupt字符设定为ch
  • -k ch:将删除一行的字符设定为ch
  • -I:不执行设置操作,但会显示当前eraseinterruptdelete字符的值(除非使用了-Q选项)。
  • -Q:不显示eraseinterruptdelete字符的值。
  • -r:显示终端机类型。
  • -s:将TERM的值以字符串形式显示(通常用于.login.profile文件中)。

实例

让用户输入终端机类型并设置状态:

# reset ?

设置erase字符为^B

# reset -e ^B

显示当前设置的字串并输出终端机类型:

# reset -sErase is control-B (^B).Kill is control-U (^U).Interrupt is control-C (^C).TERM=xterm;

转载地址:http://qzyt.baihongyu.com/

你可能感兴趣的文章
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>
No qualifying bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs<?>‘ available
查看>>
No resource identifier found for attribute 'srcCompat' in package的解决办法
查看>>
no session found for current thread
查看>>
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
查看>>
NO.23 ZenTaoPHP目录结构
查看>>