In bash, it's common to take the advantage of the "Tab" key helping you to auto-complete the command. Somehow, it will create annoying bell-sound when there are many matches and ...
So, how to disable it. Edit your ~/.inputrc, put something like
set bell-style none
Restart bash, no sound any more!
This applies to bash in both Linux and Mac OS X.