這裏顯示兩個版本的差異處。
| Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
|
linux:basic [2007/07/30 01:18] wenpei |
linux:basic [2010/04/06 12:19] (目前版本) wenpei |
||
|---|---|---|---|
| 行 111: | 行 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 ====== | ||
| 行 252: | 行 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/ | ||
| + | |||