Article Title: a solution that makes a "Drop" sound in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Maybe you will encounter a situation like me, every time you use a Linux terminal, when you hear a "beep" sound, I have the urge to tear down my chassis and drag down the built-in beep device. Click "tick" when you press Tab, and click "tick" when you press space. Every wrong operation in vi will make the machine laugh at you with a harsh "tick. Now, it's time to show who is the real master.
Maybe you haven't realized that this sound is not from an external audio output device of the system, but from a sound device inside the machine that I know is controlled by the BIOS, so next I will explain how to turn this little thing off.
Temporary solution
Sudo rmmod pcspkr
For Debian/Ubuntu users, you only need to open your terminal and run the above command. For Linux users in CentOS/Redhat/RHEL/Fedora, Log On As root and run rmmod pcspkr.
Permanent solution
For Debian/Ubuntu systems, run the following command as root:
Sudo echo "blacklist pcspkr">/etc/modprobe. d/blacklist
For CentOS/Redhat/RHEL/Fedora systems, run the following command as root:
Echo "alias pcspkr off">/etc/modprobe. conf