在网上找了几个方法,都没有效果,最后在http://www.linuxfocus.org上找到了答案
Bash:
Tcsh:
Beep globally off
In a plain linux console (no graphical X11) you can turn the beep off with the command:setterm -blength 0When working under X11 (no matter if KDE, Gnome, XFCE, or ... is used) you turn off the beep with:
#alternatively you can change the frequency of the beep to a
#very low value:
setterm -bfreq 10
xset b off
Beep off on a per shell basis
Alternativley you can turn off the beep directly in the 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
本文介绍如何在Linux系统中禁用蜂鸣器。包括在纯文本控制台下使用setterm命令调整蜂鸣器长度为0或频率极低的方法,以及在X11环境下使用xset命令关闭蜂鸣器的具体步骤。此外还提供了针对Bash和Tcsh shell环境直接禁用蜂鸣器的配置方案。
1万+

被折叠的 条评论
为什么被折叠?



