Have you ever been working in your Ubuntu terminal when suddenly that jarring error sound interrupts your flow? Those system alert sounds might be useful sometimes,
but they can quickly become distracting in a quiet office or when you’re wearing headphones. In this comprehensive guide, I’ll walk you through several methods to silence those error sounds in Ubuntu, whether you want to disable them system-wide or just in specific applications like the terminal.
Before diving into solutions, it’s helpful to understand what causes these sounds. Ubuntu, like most modern operating systems, uses audio alerts to notify users when something goes wrong—like when you hit the end of a line in the terminal or attempt an illegal operation. These sounds are meant to be helpful, but many users find them disruptive.
The alert system in Ubuntu has evolved across versions. In earlier releases like Ubuntu 18.04, controls were more straightforward, while newer versions have reorganized sound settings or removed certain options altogether.
Read: Troubleshooting and Resolving Audio Issues in Ubuntu 24.04
If you want to silence alert sounds across your entire Ubuntu system, this approach is for you.
In Ubuntu 18.04, the process is straightforward:
This single setting will eliminate those annoying beeps and boops throughout your system.
Ubuntu 20.04 and newer versions have slightly different sound settings. Some users have reported that the specific “Alert Volume” option was removed. If you don’t see this option, try this alternative:
# This command disables all event sounds system-wide
dconf write /org/gnome/desktop/sound/event-sounds "false"
This command uses dconf
, a low-level configuration system, to disable event sounds across your system. After running it, system-wide alert sounds should be silenced without requiring a restart.
If you primarily hear these error sounds while working in the terminal, you might prefer to disable them just there while keeping other system sounds intact.
This is the most user-friendly approach:
This setting takes effect immediately in your current terminal window and any new ones you open.
Read: How to display your sound card details using the terminal on Ubuntu 22.04
If you prefer command-line solutions or want to set this up on remote systems, you can modify configuration files instead:
Add this line to your ~/.bashrc
file:
# Disable terminal bell in Bash
bind 'set bell-style none'
After saving the file, you’ll need to either source it or open a new terminal:
source ~/.bashrc
If you use Zsh as your shell, the equivalent setting goes in your ~/.zshrc
file:
# Disable terminal bell in Zsh
unsetopt BEEP
Then apply the changes:
source ~/.zshrc
To disable the terminal bell for all users on the system, you can edit the system-wide configuration:
# Edit the system-wide inputrc file (requires sudo)
sudo nano /etc/inputrc
Find the line that says #set bell-style visible
or similar, and change it to:
set bell-style none
If the line doesn’t exist or is commented out, add the above line at the end of the file.
Sometimes you might encounter more complex situations where the standard methods don’t completely solve the problem.
On some systems, particularly older hardware, you might hear beeps coming directly from the computer’s internal speaker rather than through your regular audio output. To disable this:
# Blacklist the PC speaker module
echo "blacklist pcspkr" | sudo tee /etc/modprobe.d/nobeep.conf
# Unload the module immediately without requiring a reboot
sudo rmmod pcspkr
If you don’t want to completely disable alerts but find the default sound too jarring, you can replace it with a gentler sound:
If you’ve followed the methods above but still hear alert sounds:
Some users report experiencing a “reverb” effect with Ubuntu’s sound alerts—a secondary echo after the main alert sound. This is often related to sound enhancement features:
To create a consistently quiet work environment in Ubuntu:
As a developer who’s spent countless hours in terminal windows, I can attest that removing distracting sounds significantly improves focus and productivity. In shared workspaces, disabling these sounds is also a courtesy to your colleagues who might be disturbed by your computer’s frequent beeping.
The methods described above have been tested on:
Some settings locations may vary slightly in Ubuntu derivatives like Kubuntu, Xubuntu, or Linux Mint.
No, visual notifications will still appear on your screen. Disabling sound alerts only removes the auditory component.
For most methods, no restart is required. Terminal settings take effect in new terminal windows, and system sound settings usually apply immediately. Only kernel module changes (like disabling the PC speaker) might require a restart.
The terminal preferences method will differ depending on your terminal emulator. For example, if you use Terminator or Konsole, you’ll need to check their specific preferences. However, the .bashrc
and .inputrc
methods should work regardless of which terminal emulator you use.
Yes, most of these changes can be temporarily reversed. For example, you can run bind 'set bell-style audible'
in a terminal session to temporarily re-enable sounds without modifying your configuration files.
Focus on application-specific settings rather than system-wide changes. Most well-designed applications have their own sound settings that can be configured independently.
Silencing those error sounds can make your Ubuntu experience much more pleasant, especially if you spend a lot of time working in the terminal. Whether you prefer point-and-click solutions or editing configuration files directly, there’s a method that will work for your workflow and preferences.
The post How to Turn off error sound on Ubuntu 18.04 appeared first on net2.
If you’ve recently upgraded to Ubuntu 22.10 from version 22.04, you might have encountered an…
When developing software, particularly in languages like C and C++, crashes are inevitable. The dreaded…
If you’ve recently upgraded to Ubuntu 16.04 or newer with MySQL 5.7+, you might have…
When working with virtual machines, you’ll likely encounter the frustrating error message: “This system is…
Managing users and groups effectively is one of the most fundamental skills for any Linux…
Have you ever been in the middle of updating your Ubuntu container with a simple…