#alternatively you can change the frequency of the beep to a #very low value:
setterm -bfreq 10 而在 X11 下面,可以使用: xset b off 对每种 shell 操作,可以直接关掉某种 shell 里的提示音 Bash: # has to go into /etc/inputrc or .inputrc # It will not work in a .bashrc file! set bell-style none Tcsh: # put this into your .tcshrc file
# just tab completion beep off: set matchbeep = never # any beep off: set nobeep = 1 如果系统是运行在VMware下 修改虚拟机的配置文件/etc/vmware/conf或~/.vmware/preferences,加入以下内容 mks.noBeep = "TRUE"