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
.
π¬ Got your terminal to finally shut up? Leave a comment below and brag a little. You earned it. π