<--  | Map  | Index  | Search

News | Archives | Links | About LF
This document is available in: English  Castellano  ChineseGB  Francais  

[Photo of the Author]
by Guido Socher (homepage)

About the author:

Guido really likes it when a computer is tailored to his needs and looks like he wants it. That's why he is using Linux.


LF Tip: Don't beep at me

beep off


This is a small tip. From now on LinuxFocus will have at least one new tip every month. If you have some ideas for a new tip then send them to guido("at" sign)linuxfocus.org

_________________ _________________ _________________



I absolutly hate it when a computer beeps at me. I use frequently tab-completion in the shell to save some typing and I can't stand it when it beeps all the time.

So here is an instruction how to get quickly rid of the beep. To test it you can just press crtl-g in a shell if you here a beep then it is still on.  

Beep globally off

In a plain linux console (no graphical X11) you can turn the beep off with the command:
setterm -blength 0

#alternatively you can change the frequency of the beep to a
#very low value:

setterm -bfreq 10
When working under X11 (no matter if KDE, Gnome, XFCE, or ... is used) you turn off the beep with:
xset b off

Beep off on a per shell basis

Alternativley you can turn off the beep directly in the shell.

# has to go into /etc/inputrc or .inputrc
# It will not work in a .bashrc file!
set bell-style none

# put this into your .tcshrc file

# just tab completion beep off:
set matchbeep = never
# any beep off:
set nobeep = 1


To avoid any misunderstanding: The above instructions just turn off the beep. You can still listen to music on your PC.

Enjoy the silence!  

Talkback form for this article

Every article has its own talkback page. On this page you can submit a comment or look at comments from other readers:

Webpages maintained by the LinuxFocus Editor team
© Guido Socher
"some rights reserved" see linuxfocus.org/license/
Translation information:
en --> -- : Guido Socher (homepage)

2005-06-03, generated by lfparser version 2.52