Mute the annoying bell sound in Linux
Murder that terminal beep once and for all - with one tiny config spell.
That Annoying Backspace Beep
You know the one. The terminal beep - that ear-piercing “BEEP!” that hits you like a sudden betrayal when you backspace one character too far. It’s called the “bell”, but honestly it sounds more like a horror jump-scare.
Lucky for us, there’s a clean and silent way to shut it up. Permanently. 🔪
🔇 Disable the Bell via ~/.inputrc
This method works like real magic, even in WSL2 or pure Ubuntu setups. Here’s how to exorcise that beep:
Open your
inputrc
file:1
nano ~/.inputrc
Add this line to the bottom:
1
set bell-style none
- Save and exit.
Ctrl + O
→ Enter to saveCtrl + X
to exit
Reload the config:
1
bind -f ~/.inputrc
And that’s it. The beast is dead. 🪦
Note: This will mute the bell sound for Bash sessions. It works perfectly on WSL2, Ubuntu, and other Debian-based distros. For Zsh users, you might want to do something similar in your
.zshrc
.