博客
关于我
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/

你可能感兴趣的文章
order by rand()
查看>>
SSM(Spring+SpringMvc+Mybatis)整合开发笔记
查看>>
ViewHolder的改进写法
查看>>
Orderer节点启动报错解决方案:Not bootstrapping because of 3 existing channels
查看>>
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement profile
查看>>
sql查询中 查询字段数据类型 int 与 String 出现问题
查看>>
org.apache.commons.beanutils.BasicDynaBean cannot be cast to ...
查看>>
org.apache.dubbo.common.serialize.SerializationException: com.alibaba.fastjson2.JSONException: not s
查看>>
sqlserver学习笔记(三)—— 为数据库添加新的用户
查看>>
org.apache.http.conn.HttpHostConnectException: Connection to refused
查看>>
org.apache.ibatis.binding.BindingException: Invalid bound statement错误一例
查看>>
org.apache.ibatis.exceptions.PersistenceException:
查看>>
org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned
查看>>
org.apache.ibatis.type.TypeException: Could not resolve type alias 'xxxx'异常
查看>>
org.apache.poi.hssf.util.Region
查看>>
org.apache.xmlbeans.XmlOptions.setEntityExpansionLimit(I)Lorg/apache/xmlbeans/XmlOptions;
查看>>
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
查看>>
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugManifest'
查看>>
org.hibernate.HibernateException: Unable to get the default Bean Validation factory
查看>>
org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
查看>>