Chinaunix首页 | 论坛 | 博客
  • 博客访问: 88254
  • 博文数量: 21
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 240
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-30 11:41
文章分类

全部博文(21)

文章存档

2009年(4)

2008年(17)

我的朋友

分类: LINUX

2008-09-05 12:22:17

shell 里面,可以按下 crtl-g 来测试一下这个嘟嘟声是否已经去掉


关掉所有的提示音


Linux 控制台下,可以使用以下命令:

 setterm -blength 0

 

 #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"

阅读(1660) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~