How to Completely Disable the ‘Terminal Bell’ (Warning Beep) in Ubuntu

If you spend a lot of time working in the Ubuntu command line, you are undoubtedly familiar with the “Terminal Bell.” This is a sharp, synthetic beep that the terminal emits whenever you attempt an action that the system cannot execute. For example, if you press the Backspace key when there are no characters left to delete, or if you press Tab to autocomplete a file name when multiple options exist, the terminal will aggressively beep at you.

While this auditory feedback was useful on ancient mainframe computers that lacked graphical error messages, it is completely unnecessary on a modern desktop. If you are working in a quiet office or a library, that sudden, loud beep can be highly disruptive to both you and your coworkers. Fortunately, you can completely silence the terminal bell without muting your entire computer.

Disabling the Bell via the GNOME Terminal Preferences

If you are using the default terminal emulator provided by the standard Ubuntu desktop (GNOME Terminal), you can turn off the bell directly within its graphical settings.

  1. Open a new Terminal window (Ctrl + Alt + T).
  2. Click on the Hamburger menu (the three horizontal lines) in the top-right corner of the terminal window.
  3. Select Preferences from the dropdown menu.
  4. A new settings window will open. In the left-hand sidebar, look under the Profiles section and click on your active profile (usually named Unnamed or Default).
  5. In the main panel, ensure you are on the Text tab.
  6. Scroll down to the bottom of the panel until you see a section labelled Sound.
  7. Uncheck the box labelled Terminal bell.
  8. Close the Preferences window.

The change takes effect immediately. You can test it by mashing the Backspace key on an empty command prompt; it should remain completely silent.

Disabling the Bell Globally (For All Emulators)

If you use a different terminal emulator (like Terminator, Guake, or Alacritty), or if you occasionally drop into the raw TTY consoles, the GNOME preferences will not help you. You must disable the bell at the core system level by modifying the input configuration file.

  1. Open a terminal window.
  2. You need to edit the global input configuration file. Type the following command and press Enter:
    sudo nano /etc/inputrc
  3. Type your administrator password when prompted.
  4. The nano text editor will open. Scroll through the file using the down arrow key.
  5. Look for a line that says:
    # set bell-style none
  6. The hash symbol (#) means the line is “commented out” and ignored by the system. Use your keyboard to delete the # and the space after it, so the line reads exactly:
    set bell-style none
  7. Save the file by pressing Ctrl + O and then Enter.
  8. Exit the editor by pressing Ctrl + X.

You will need to completely log out of your Ubuntu user account and log back in (or reboot the computer) for this global change to take effect across all terminal applications.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.