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