To disable the beep in bash you need to uncomment (or add if not already there) the line set bell-style none in your /etc/inputrc file. This file is protected and should be edited using sudo or root user.

Source: