linux在虚拟机上不时就会抱出嘟嘟的声音,听的人心烦意乱,于是乎,终于忍受不了,决定彻底要解决这个问题,解决方法如下:
1、立刻生效,且重启后也会生效,走的是全局的配置文件,开启启动的时候会读取这个文件,依次执行这个文件的内容
[root@dhsh mysql]# tail -1 ~/.bash_profile
setterm -blength 0
[root@dhsh mysql]# source ~/.bash_profile 这个是为了当前立即生效
2、永久生效,把/etc/inputrc中关于set bell-style 设置成none
[root@dhsh mysql]#
[root@dhsh mysql]# head -2 /etc/inputrc
# do not bell on tab-completion
set bell-style none
转载于:https://blog.51cto.com/saadiya/973788