Disable alert sounds on Ubuntu 20.04
Solution 1:
In a terminal, type
gsettings set org.gnome.desktop.sound event-sounds false
external link to gsettings developer.gnome.org:
Solution 2:
I just had the same question, and was able to silence the terminal beep sounds by means of Settings -> Sound -> Volume Levels -> System sounds
. You can either use the slider or double clic on the speaker on the right end of the slider.
For William Martens the gsettings command
you posted does not change anything.
Edit:
After looking into whether there is a distinction between alert sounds and system sounds I now found this answer How to disable alert sounds on Ubuntu 20.04 that proposes the same solution.