FreeBSD: Disable / Stop Console Beep ( Bell )

last updated in Categories

I know how to turn off console beep under Gnome Linux desktop. How do I stop console beep under FreeBSD operating systems?

You need to set kernel state or variable to disable beep. Edit /etc/sysctl.conf, enter (you must login as root user):
# vi /etc/sysctl.conf
Append the following config:
hw.syscons.bell=0
Save and close the file. You can also type the following command at shell:
# sysctl hw.syscons.bell=0

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

1 comment

    Have a question? Post it on our forum!