linux命令行输入命令不显示
问题在命令行输入命令时,不显示输入的命令,但是有结果出现[root@peipei ~]# [root@peipei ~]# [root@peipei ~]# [root@peipei ~]# 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/lo
·
问题
在命令行输入命令时,不显示输入的命令,但是有结果出现
[root@peipei ~]# [root@peipei ~]# [root@peipei ~]# [root@peipei ~]# 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:16:3e:03:64:91 brd ff:ff:ff:ff:ff:ff
inet 172.21.168.75/20 brd 172.21.175.255 scope global dynamic eth0
valid_lft 315188648sec preferred_lft 315188648sec
[root@peipei ~]# zhangwuji:x:9901:1010::/home/zhangwuji:/bin/bash
songxiaobao:x:9902:1011::/home/songxiaobao:/bin/bash
linhuchong:x:9903:1010::/home/linhuchong:/bin/bash
解决方法
stty(set tty)命令用于显示和修改当前注册的终端的属性
#禁止回显
stty -echo
#打开回显
stty echo
更多详细stty的设置,点击stty
更多推荐
已为社区贡献1条内容
所有评论(0)