还有另一种方法,就是在/etc/inputrc文件中把
set bell-style none
前的注释去掉,改成
set bell-style offide
--------------------------------------------------------------------------------------input
执行下列代码,不须要全执行,任意一行就能够了。
setterm -bleng 0
setterm -blength 0
xset b off
===========
下面另外一种方法
临时的方案
sudo rmmod pcspkr
对于Debian/Ubuntu的用户来讲,只要打开你的终端跑一下上述的命令就能够了。对于CentOS/Redhat/RHEL/Fedora的Linux用户,则须要以root身份登陆而后执行rmmod pcspkr
一劳永逸的方案
对于Debian/Ubuntu系统,使用root身份执行:
sudo echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist
对于CentOS/Redhat/RHEL/Fedora系统,使用root身份执行:
echo "alias pcspkr off" >> /etc/modprobe.conf ......
it