This beep sound is annoying under Linux, how do I disable it forever under Debian / Fedora / RHEL / Red Hat / Ubuntu Linux?
There are diffrent methods to disable / turn of beep under Linux (turn off terminal beep). Use any one of the following method as per your requirements.
Ubuntu Linux / Gnome Terminal
a) Open Gnome terminal
b) Click on Settings > Preferences > Silence Terminal Bell
Alternatively, Click on General Tab -> General -> Un-Check Terminal bell option
If you are using xterm
Open ~/.xsession file (i.e. /home/you/.xession)
$ cd
$ vi .xession
Append the following line:
xset b off
Save and close the file.
If you are using bash shell
Open you ~/.inputrc file (i.e. /home/you/.inputrc file
$ cd
$ vi .inputrc
Append following line:
set bell-style none
Save and close the file.
If you just want to turn off beep for VIM text editor
Open vim config file ~/.vimrc (i.e. /home/you/.vimrc)
$ cd
$ Vi .vimrc
Append following line
set vb
Save and close the file.
If you are using Ubuntu Linux
a) Click on Applications > Accessories > Terminal
b) Now click on Edit Menu > Current Profile
c) Click on General Tab > General > Remove check box (Terminal bell)
You can also remove the driver, enter:
$ sudo modprobe -r pcspkr
Append the following line to your /etc/modprobe.d/blacklist so that beep remains off after the system reboot:
blacklist pcspkr
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop






![Linux Gnome Numeric Keypad Disabled [ Mouse keys ]](http://s0.cyberciti.org/images/rp/1/2.jpg)






{ 16 comments… read them below or add one }
in KDE konsole: Settings> Bell > None
Thanks.
In RHEL 5.0 Gnome Terminal:
Edit > Current Profile > (General Tab) Uncheck Terminal Bell
Thanks :)
Great tip. Saved me a lot of headaches hehe
Thank you for this tip to turn off the terminal beep. I used your bash shell suggestion, which worked perfectly after reboot. Thanks again!
I HAVE A CONSTENT BEEPING HOW DO I TURN IT OFF
thanks dude, it saved me and my Co-workers :)
Cheers mate
Mehdi
Thanks.
No need to reboot though. Opening a new terminal is sufficient.
David.
you have some of the names wrong for files and what you do exactly but it got me on the right track. thanks.
simple, clear and very useful
thanks
realy THANKS !
Great!!!
Great man, with every distro install I need to switch of the beep ….
The last section is also applicable for Fedora 11
setterm -blength 0
should work system wide on most if not even all distro’s
To disbale the annoying beep in the opensuse 11.3 gnome terminal, Select edit > profiles > edit (the default profile) and uncheck the ‘Terminal Bell’ in the General tab.
thanks! for bash it worked great after reboot!!!!
Thanks a lot!
The ‘Thang!’ was extremely irritating on GNome shell. I’ve now gotten rid of it.
Thanks