The beep sound is really annoying on a Linux system, especially when trying to use TAB completion for commands on a Linux terminal. So how do I permanently disable this beep sound? worry less because I have got a solution for you.
We’ll go through disabling it on Ubuntu, Debian, Kali Linux, Fedora, CentOS, and RHEL.
This will vary depending on the terminal bash shell of your choice.
Turn Off Terminal Beep Sound on Linux
First, open Gnome terminal then click on:
Terminal>Edit>Profile Preferences > General > Terminal Bell, uncheck the ticked terminal bell check-box. See the screenshots below.
For Kali Linux and Debian see below.
If you are using xterm terminal emulator, type:
echo xset b off >> ~/.xession
For vim; Vi IMproved, a programmers text editor, turn off beep alert sound by appending the following line to the file~/.vimrc
.
vim ~/.vimrc
Then add
set vb
at the end of the file, press Esc key then: wq to save and quit. A single line command to accomplish that without the use of vim is.
echo set vb >> ~/.vimrc
Now enjoy silent work time on your Terminal in a Linux system. Also check Udemy courses that helps you master Linux system administration:
- Linux Mastery: Master the Linux Command Line in 11.5 Hours
- Complete Linux Training Course to Get Your Dream IT Job
- Learn Linux in 5 Days and Level Up Your Career
- Linux Administration Bootcamp: Go from Beginner to Advanced
- Complete Linux Bash Shell Scripting with Real Life Examples
- Linux Shell Scripting: A Project-Based Approach to Learning