Disable pc speaker beep in Linux

Shell Script (Bash) posted over 2 years ago by marko

Not really a snippet, still a good fix for a big annoyance. Temporarily disable the speaker by removing the driver for it.

   1  sudo rmmod pcspkr

To make the silence more permanent add this line into /etc/modprob.d/blacklist

   1  blacklist pcspkr

Tagged pc speaker, linux, quiet, disable, audio, beep