linux 中shell 终端关闭和开启回显功能

发布时间 2023-06-15 00:20:13作者: 小鲨鱼2018

 

001、关闭、开启回显功能

[root@PC1 test2]# seq 3
1
2
3
[root@PC1 test2]# stty -echo          ##   关闭回显功能,关闭后在终端输入内容将不再显示
[root@PC1 test2]# 1
2
3,
[root@PC1 test2]# [root@PC1 test2]#       ## stty echo 表示开启回显功能,开启后可以在终端正常的显示内容
[root@PC1 test2]# seq 3
1
2
3