linux警告音关闭方法

  • A+
所属分类:运维教程

linux出错的时候,系统的扬声器会发出难听的声音。

可以通过下面的命令关掉它:

rmmod pcspkr

如果你想重新打开,可以使用下面方法:

modprobe pcspkr

当然,上面方法只是临时起效,重新启动后警告音依旧,彻底关掉警告音的方法如下。

如果用的是bash作shell,在~/.bashrc最后添加:

setterm -blength 0
xset -b
  • 问答中心
  • 微信小程序扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:34   其中:访客  34   博主  0

    • avatar holiday weather guide

      Howdy! I just want to offer you a big thumbs up for your excellent info you have right here on this post. I’ll be returning to your web site for more soon.

      • avatar Web Design Company

        Leading Digital Marketing agency in India and Kolkata, Leading Web Design company. Providing web designing and Digital marketing services, Digital marketing course, and certification with an internship.

        • avatar click to find out more

          I’m really enjoying the design and layout of your site. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Exceptional work!

          • avatar his explanation

            I view something truly special in this website.