关闭centos命令模式的警告声音 vim /etc/inputrc set bell-style visible #bell-style的取值范围是:none, visible, audible, 想把警告声去掉把/etc/inputrc 中的set bell-style 的值改为 visible,并将注释去掉,再reboot 或 shutdown -r now重启系统就OK啦。