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

你可能感兴趣的文章
npm报错Failed at the node-sass@4.14.1 postinstall script
查看>>
npm报错fatal: Could not read from remote repository
查看>>
npm报错File to import not found or unreadable: @/assets/styles/global.scss.
查看>>
npm报错TypeError: this.getOptions is not a function
查看>>
npm报错unable to access ‘https://github.com/sohee-lee7/Squire.git/‘
查看>>
npm淘宝镜像过期npm ERR! request to https://registry.npm.taobao.org/vuex failed, reason: certificate has ex
查看>>
npm版本过高问题
查看>>
npm的“--force“和“--legacy-peer-deps“参数
查看>>
npm的安装和更新---npm工作笔记002
查看>>
npm的常用操作---npm工作笔记003
查看>>
npm的常用配置项---npm工作笔记004
查看>>
npm的问题:config global `--global`, `--local` are deprecated. Use `--location=global` instead 的解决办法
查看>>
npm编译报错You may need an additional loader to handle the result of these loaders
查看>>
npm设置淘宝镜像、升级等
查看>>
npm设置源地址,npm官方地址
查看>>
npm设置镜像如淘宝:http://npm.taobao.org/
查看>>
npm配置安装最新淘宝镜像,旧镜像会errror
查看>>
NPM酷库052:sax,按流解析XML
查看>>
npm错误 gyp错误 vs版本不对 msvs_version不兼容
查看>>
npm错误Error: Cannot find module ‘postcss-loader‘
查看>>