0
点赞
收藏
分享

微信扫一扫

【Linux】一步一步学Linux——reset命令(268)


00. 目录


文章目录


  • ​​00. 目录​​
  • ​​01. 命令概述​​
  • ​​02. 命令格式​​
  • ​​03. 常用选项​​
  • ​​04. 参考示例​​
  • ​​05. 附录​​


01. 命令概述

reset命令​是用来重新初始化终端的(terminal initialization)。在有些情况,终端显示会混乱无比,比如不小心显示了一个二进制文件,以前我在不知道reset命令时,只好将终端强行关闭,然后重新登录。现在只需要输入reset然后回车就会将混乱的显示通通清除掉,恢复正常状态。

02. 命令格式

用法:reset [选项] [参数]

03. 常用选项

-c          set control characters
-e ch erase character
-I no initialization strings
-i ch interrupt character
-k ch kill character
-m mapping map identifier to type
-Q do not output control key settings
-r display term on stderr
-s output TERM set command
-V print curses-version
-w set window-size

04. 参考示例

4.1 查看reset的符号链接

[deng@localhost ~]$ ls -l /usr/bin/reset
lrwxrwxrwx. 1 root root 4 11月 8 2018 /usr/bin/reset -> tset
[deng@localhost ~]$

4.2 重新初始化终端

[deng@localhost ~]$ reset

4.3 输出TERM设置

[deng@localhost ~]$ reset -s

TERM=xterm;
[deng@localhost ~]$

05. 附录

参考:​​【Linux】一步一步学Linux系列教程汇总​​



举报

相关推荐

0 条评论