kk Blog —— 通用基础


date [-d @int|str] [+%s|"+%F %T"]
netstat -ltunp
sar -n DEV 1

CentOS的pcspkr模块, 报警声

http://code.js-code.com/centos/120705.html

加载pcspkr模块打开beep

1
2
3
[root@localhost~]# modprobe pcspkr
[root@localhost~]# lsmod | grep pcspkr
pcspkr    20000

卸载pcspkr模块关闭beep

1
[root@localhost~]# rmmod pcspkr

永久禁止加载pcspkr模块

1
2
3
4
5
6
[root@localhost~]# vim /etc/modprobe.d/blacklist.conf
blacklist pcspkr


[root@localhost~]# vim /etc/rc.local
/sbin/rmmod pcspkr