To disable the hardware beep sound for the terminal in Gnome Linux, follow these steps:
gsettings set org.gnome.desktop.wm.preferences audible-bell false
This will disable the hardware beep sound for all Gnome applications, including the terminal.
echo "set bell-style none" >> ~/.inputrc
This will add the set bell-style none
line to the ~/.inputrc
file, which is the configuration file for the readline
library used by the terminal. This will disable the hardware beep sound for the terminal only.
That's it! The hardware beep sound for the terminal is now disabled in Gnome Linux. Note that this change may not take effect for all terminal applications, as some may not use the readline
library. In that case, you may need to disable the hardware beep sound for those applications separately.