The "system beep" (or "system bell") can be quite annoying. Instead of disabling it altogether, you may be able to change it to something a little less irritating. Some operating systems will allow you to change it to a visual alert or a sound file of your choice. Today, I'll show you how to change the duration, pitch, and volume to something less grating if you're using X.Org (applies to just about all Unix or GNU/Linux systems.) [via]
xset, a command that can set various preferences in the current X display. One of the parameter sets is
b, the properties of the system bell. It can be used to set the relative volume, pitch, and duration. Here's an example:
xset b 50 700 5
That example sets the system bell to 50% volume, a pitch of 700 hertz, and a duration of 5 milliseconds.
Experiment by entering that command, then pressing [Backspace] on the next line of your terminal (to generate a system bell.) Your hardware may not support certain combinations, in which the bell is silent.
To have this setting take effect every time you log in, add it to your session startup commands. In Ubuntu, that's System :: Preferences :: Sessions.