19

If I'm in an empty Linux terminal in Windows (using the Windows Subsystem for Linux), and I hit backspace, I hear this annoying error-like sound. My Windows computer used to do this, but then I turned it off. How do I turn off this sound?

Pro Q
  • 439

4 Answers4

29

If you want to stop bash generating error sounds without affecting other Windows programs, type the following:

bind 'set bell-style none'

If you want a permanent change, add it to the end of ~/.bashrc.

AFH
  • 17,958
5

Here using the WLS (Ubuntu for Windows) I had to edit at:

/etc/inputrc

Just run it and restart the terminal

echo 'set bell-style none' >> /etc/inputrc
3

Similar to how you turn off the error sound for Windows, go into your Sound settings in the Windows settings. Select the Select the "Sounds" tab. Then select the "Critical Stop" sound, and change it to "None". This will stop the terminal from making that noise. (To stop the similar sound on Windows, set the "Default Beep" sound to "None".)

Pro Q
  • 439
1

If you're using the new Windows "Terminal" application (which is pretty slick) then you can go into Settings > [The profile you want to change] > Advanced > Bell Notification Style where you'll have the option to deselect "Audible" and optionally turn on "Flash window" or "Flash taskbar."

OneHoopyFrood
  • 178
  • 11