LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-10-2004, 06:37 PM   #1
Backstander
LQ Newbie
 
Registered: May 2004
Location: USA
Distribution: Red Hat, Fedora, KNOPPIX, DSL, Slackware
Posts: 22

Rep: Reputation: 15
How to disable beep in command line


You know the annoying PC speaker beeps you get in linux when you hit backspace too many times or hit tab to autocomplete something and there's either multiple or no matches or when you type shutdown -h now (or whatever)? I was wondering if there was a way to disable this "beep on error" cuz i'm fixing to go crazy and rip that darn PC speaker right outta my case!

I'm not talking about in the GUI using xterm or konsole. I know how to do that.
Use this command to turn off beeping in general in X:

xset b 0

Does anyone out there know this? I'd be much obliged.
 
Old 09-10-2004, 06:50 PM   #2
sether
Member
 
Registered: Aug 2004
Posts: 695

Rep: Reputation: 30
http://www.linuxquestions.org/questi...hreadid=224554 someone had the same problem.
 
Old 09-10-2004, 07:59 PM   #3
Backstander
LQ Newbie
 
Registered: May 2004
Location: USA
Distribution: Red Hat, Fedora, KNOPPIX, DSL, Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
Awesome!!! Here's how I disabled it:

I added the line "set bell-style none" to the file ~/.inputrc then logged out and back in and it worked right away. But you'll have to add this to every account you want to disable it for.

Adding it to /etc/inputrc didn't work for me. I think because I'm using Red Hat Linux 5.2 (kernel 2.0.34) on here.

Thanks sether for pointing me in the right direction thou

Last edited by Backstander; 09-12-2004 at 01:09 PM.
 
Old 09-10-2004, 08:09 PM   #4
Backstander
LQ Newbie
 
Registered: May 2004
Location: USA
Distribution: Red Hat, Fedora, KNOPPIX, DSL, Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
Sorry to post twice but you can also use "set bell-style visible"
 
Old 09-10-2004, 08:18 PM   #5
sether
Member
 
Registered: Aug 2004
Posts: 695

Rep: Reputation: 30
if there's a /etc/profile file in linux (i don't know because i'm on FreeBSD at the moment), that usually would work for something like that on a system-wide scale.
 
Old 09-12-2004, 01:29 PM   #6
Backstander
LQ Newbie
 
Registered: May 2004
Location: USA
Distribution: Red Hat, Fedora, KNOPPIX, DSL, Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
Yeah there is a /etc/profile but didn't seem to work for me. May work for newer linux version. I think /etc/inputrc is system-wide implementation as such but didn't work for me either. I even tryed them with a full system reboot without luck.
 
Old 09-12-2004, 02:11 PM   #7
zz9pluralzalpha
Member
 
Registered: Jun 2004
Location: UK
Distribution: BLFS 5.1
Posts: 34

Rep: Reputation: 15
I have the PC speaker compiled as a kernel module rather than having it compiled in. I've never had a reaon to load it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable system beep in emacs? Snyke Linux - Newbie 5 12-14-2011 02:55 AM
How to disable that annoying BEEP? icy-flame Linux - Newbie 19 05-01-2007 06:16 PM
disable reboot/shutdown beep yiang Linux - Newbie 13 04-26-2006 11:47 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
Disable the console beep? csvke Linux - General 6 03-01-2004 04:00 AM


All times are GMT -5. The time now is 01:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration