≡ Menu

Gnome Linux Disable / Turn Off Hardware Beep Sound For Terminal

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

Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:

{ 20 comments… add one }
  • Red November 9, 2007, 4:43 pm

    in KDE konsole: Settings> Bell > None

    • Siraj January 30, 2011, 8:34 am

      In RHEL 5.0 Gnome Terminal:

      Edit > Current Profile > (General Tab) Uncheck Terminal Bell

      Thanks :)

    • toThink February 27, 2016, 12:50 pm

      Thanks , that was very helpful ..

  • Martin November 15, 2007, 4:09 pm

    Great tip. Saved me a lot of headaches hehe

  • Peter February 1, 2008, 11:10 pm

    Thank you for this tip to turn off the terminal beep. I used your bash shell suggestion, which worked perfectly after reboot. Thanks again!

  • Bethany June 25, 2008, 2:45 am


  • Mehdi July 22, 2008, 11:37 am

    thanks dude, it saved me and my Co-workers :)
    Cheers mate

  • David October 6, 2008, 8:04 pm


    No need to reboot though. Opening a new terminal is sufficient.


  • ted December 24, 2008, 5:37 pm

    you have some of the names wrong for files and what you do exactly but it got me on the right track. thanks.

  • nano May 17, 2009, 7:27 pm

    simple, clear and very useful

  • AHAPXUCT June 17, 2009, 11:17 pm

    realy THANKS !

  • Alex June 20, 2009, 2:18 am


  • martyn July 4, 2009, 11:48 am

    Great man, with every distro install I need to switch of the beep ….
    The last section is also applicable for Fedora 11

  • Lintz February 13, 2010, 10:32 pm

    setterm -blength 0
    should work system wide on most if not even all distro’s

  • Shrisha August 24, 2010, 3:26 am

    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.

  • jagadish May 31, 2011, 6:24 am

    thanks! for bash it worked great after reboot!!!!

  • Ashwin August 5, 2011, 10:53 am

    Thanks a lot!

    The ‘Thang!’ was extremely irritating on GNome shell. I’ve now gotten rid of it.


  • Guest January 8, 2014, 5:35 pm

    Thanks for the info! This is still super useful. especially on a chromebook. Chrome OS has a *very* annoying terminal bell that made it difficult to work and not mute all audio (so as to listen to music).

    For those curious, on machines I ssh to from my chromebook, I set both the .inputrc and the .vimrc. AFAIK, there is no way to disable the annoying chrome OS beep directly.

  • santosh March 18, 2016, 8:57 am

    Thank you . terminal sound was annoying. your info helped to get rid of this sound

  • Alok Kumar January 5, 2017, 8:23 pm

    Thank You!!! The suggestions were very good. It annoyed me out of my wits to hear to that annoying beep sound and finally silence prevails with this suggestion.

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , , , , , , , , , , , , , , , , ,