linux终端调整声音,关闭Linux下终端或Vi的BEEP声

Q. This beep sound is annoying under Linux, how do I disable it forever?

A. To be frank there are many ways exists - to turn off terminal beep. Use any one of the following method as per your requirements.

If you are using Gnome terminal

a) Open Gnome terminal

b) Click on Settings > Preferences > Silence Terminal Bell

Or Click on General Tab -> General -> Un-Check Terminal bell option

If you are using xterm

Open ~/.xsession file (i.e. /home/you/.xession)

$ cd

$ vi .xessionAppend following line

xset b off

Save and close the file.

If you are using bash

Open you ~/.inputrc file (i.e. /home/you/.inputrc file

$ cd

$ vi .inputrcAppend following line:

set bell-style none

Save and close the file.

If you just want to turn off beep for VIM text editor:

Open vim config file ~/.vimrc (i.e. /home/you/.vimrc)

$ cd

$ Vi .vimrc

Append following line

set vb

Save and close the file.

If you are using Ubuntu Linux

a) Click on Applications > Accessories > Terminal

b) Now click on Edit Menu > Current Profile

c) Click on General Tab > General > Remove check box (Terminal bell)

引用自:http://www.cyberciti.biz/faq/how-to-linux-disable-or-turn-off-beep-sound-for-terminal/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值