Disable console bell in FreeBSD

I use Bash and frequently utilize tab completion. On my FreeBSD, when there are multiple options during tab completion, the annoying console bell rings. For C programmers, it is the ‘\a’ that you included in your printf() calls when first learning C to drive others crazy.

To disable it, as root user you can run:

# sysctl hw.syscons.bell=0
hw.syscons.bel;: 1-> 0

Add that command to /etc/sysctl.conf to permanently disable it.  Good riddance!

About these ads

2 Responses to Disable console bell in FreeBSD

  1. fixhunter says:

    Hey man – Just came across your blog, why did you stop doing the QuickFix posts, they are awesome man! Did you ever finish the tutorial, I would love to see the finished posts?!?!

    Thanks!

    • globalengineer says:

      I quit mostly because I’ve gotten out of the financial services industry. Also, because I at the time I was working in high-frequency trading and in the front-office, we were moving away from TCP/IP-based FIX solutions to faster communication solutions. The infrastructure guys were still using FIX for external connections, but in the front-office FIX was no longer necessary.

      That said, the only reason that anyone visits this blog is for the QuickFix posts…perhaps I ought to pick up where I left off just for the sake of finishing the project??? I will consider revisiting the series.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.