Stop the console bell

Just the other day, a colleague of mine came across the method to stop the console bell. For those of you unfamiliar, the console bell is very annoying because when you use tab completion on a virtual terminal, it will emit beeps. This rapidly becomes VERY frustrating.

So – the fix is to run:

setterm -blength 0

Simple eh? :-)

Note: This will work for the virtual terminals (eg: /dev/tty3), but not necessarily for programs like xterm or gnome-terminal.