Last Updated on 2021-10-24 by Clay
Introduction
Many people are troubled by the beeping sound when use tab key to auto-complete command.
There are two types of beeping sounds, one is emitted by speaker or stereo, and other one is emitted by the host hardware device.
The following records two different ways to turn off the beeps.
Speaker (Stereo) Emit
Edit the inputrc file (vim can instead of any editor you like):
sudo vim /etc/inputrc
Comment out the line of # set bell-style none
. Restart the terminal, and you should no longer hear the beeping sound from the speaker (or stereo).
Host Hardware Device Emit
Most of this beeping sound occurs when a graphical desktop environment is not used. To close, just use the following command:
setterm -blength 0
References
- https://linuxconfig.org/turn-off-beep-bell-on-linux-terminal
- https://unix.stackexchange.com/questions/1974/how-do-i-make-my-pc-speaker-beep