If you are a frequent Terminal user or even a newbie, you might have experienced an annoying beeping sound when you do something that is “not allowed”. For example, if you are in your Terminal and hit backspace when there are no characters to delete, this bell will ring. Another instance when this bell is played is when you are trying to tab-complete although there are no completions for it. If you still can’t figure what sound we are talking about, try running the following command in your Terminal, and you will know how this Terminal bell sounds:

$ echo -e '\a'

The solution to getting this annoying sound muted is through the Terminal itself. All you need to do is make use of the Terminal Preferences UI to turn off this sound. This way you can focus more on the work at hand rather than experiencing the disturbing sound that does nothing more than just distracting you.

We have run the commands and procedures mentioned in this article on a Ubuntu 18.04 LTS system.

Muting the Hardware Beep on Ubuntu Linux

Please follow these steps in order to mute the Terminal bell from the Terminal itself:

Step 1: Open the Terminal

Open the Terminal application either by using the Ctrl+Alt+T shortcut or by accessing it through the application launcher search as follows:

Open Linux Terminal

Step 2: Access Terminal Preferences

The Terminal preferences let you make several customizations to your overall Terminal experience. This also includes muting the Terminal bell. There are two ways through which you can access the Preferences view:

1. Click on the Edit menu and then select the Preferences option as follows:

Terminal Preferences

2. Right-click in the Terminal window and then select Preferences from the menu as follows:

Right-click in terminal window

The preferences view opens in the following view:

Edit profile

Preferences view opens in an Unnamed profile view by default. Preferences let you create custom profiles that you can apply to your Terminal according to your needs. However, we will use this default Unnamed profile to edit the Terminal Bell settings.

Step 3: Edit Terminal Preferences

In the Preferences view, try locating the “Terminal bell” option under the Sound category. This option is checked by default which means that the Hardware beep is enabled.

Edit the Preferences

Uncheck this option in order to turn off the Terminal bell. Click on the Close button and check the Terminal bell now; it will not beep on any trigger. You can verify this easily by hitting ‘backspace’ or “tab” when nothing is entered on the command prompt.

Now you will no longer be bothered by this “mostly” annoying beep sound when you are trying to focus on the more important stuff.

How to mute/disable Hardware Beep Sound in Ubuntu Terminal

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.