FreeBSD Disable Bell / Beep ( Hardware beep )

https:‮ual.www//‬tturi.com
FreeBSD Disable Bell / Beep ( Hardware beep )

To disable the bell (beep) in FreeBSD, you can use the following steps:

  1. Edit the /etc/login.conf file as the root user and add the following line:
beep=no
  1. Save and close the file.

  2. Update the system's login class database by running the following command:

cap_mkdb /etc/login.conf
  1. Log out and log back in for the changes to take effect.

Alternatively, you can also disable the bell by adding the following line to your ~/.bashrc file:

setterm -blength 0

This will disable the bell for the current terminal session. To make the change permanent, you will need to add the line to the ~/.bashrc file in your home directory. This file is executed every time you start a new terminal session, so the change will be applied every time you open a terminal.

Note that these steps will only disable the hardware beep generated by the terminal. If you want to disable the beep generated by other programs, you will need to modify the program's configuration or disable the beep feature in the program itself.

Created Time:2017-10-28 20:40:34  Author:lautturi