這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
linux:basic [2007/05/11 23:48] wenpei |
linux:basic [2010/04/06 12:19] (目前版本) wenpei |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 關掉 console 下的蜂鳴器 ====== | ||
+ | sudo modprobe -r pcspkr | ||
+ | |||
+ | 或者用 sudo modconf,找到 drivers/input/misc/pcspkr.ko 並移除。 | ||
+ | |||
====== 家目錄的原始檔 ====== | ====== 家目錄的原始檔 ====== | ||
/etc/skel | /etc/skel | ||
行 106: | 行 111: | ||
scp [file] [username]@[host]:[path] | scp [file] [username]@[host]:[path] | ||
example: | example: | ||
- | scp make.conf fang@140.115.189.106: | + | scp make.conf user@192.168.1.2:~ |
- | 主機後面要加一個「:」 | + | 主機後面要加一個「:」代表遠端的主機,「~」代表遠端的家目錄。 |
====== 透過 ssh 掛載遠端 filesystem ====== | ====== 透過 ssh 掛載遠端 filesystem ====== | ||
行 134: | 行 139: | ||
===== bmon ===== | ===== bmon ===== | ||
===== iftop ===== | ===== iftop ===== | ||
+ | ===== iptraf ===== | ||
行 204: | 行 210: | ||
# uname -snrvm > /var/run/motd | # uname -snrvm > /var/run/motd | ||
# [ -f /etc/motd.tail ] && cat /etc/motd.tail >> /var/run/motd | # [ -f /etc/motd.tail ] && cat /etc/motd.tail >> /var/run/motd | ||
+ | |||
+ | ====== SSH 不檢查 key ====== | ||
+ | ~/.ssh/config | ||
+ | StrictHostKeyChecking no | ||
====== 備份指令 ====== | ====== 備份指令 ====== | ||
行 242: | 行 252: | ||
remove_oldfiles $back_www_dir $RETENTION_PERIOD | remove_oldfiles $back_www_dir $RETENTION_PERIOD | ||
</code> | </code> | ||
+ | |||
+ | ====== Run commands on multiple machines ====== | ||
+ | Fanout and Fanterm: http://blog.wu-boy.com/2010/01/08/1950/ | ||
+ |