红联Linux门户
Linux帮助

关闭系统提示音

发布时间:2007-01-30 01:10:05来源:红联作者:Message
在 shell 里面,你可以按下 crtl-g 来测试一下这个嘟嘟声是否已经去掉。

关掉所有的提示音
在 Linux 控制台下(没有 X11),你可以使用一下命令:

setterm -blength 0

#alternatively you can change the frequency of the beep to a
#very low value:

setterm -bfreq 10

而在 X11 下面(不管是 KDE、Gnome、XFCE 或者……) 你可以:

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
文章评论

共有 0 条评论