web/linux_command の履歴(No.1)


Linuxのコマンド(?)#

SSH接続とかで使えるはず

ファイルのコピー#

cp#

nemusg.comをコピーしてnemusg.com.140803を作成したい場合

cp -Rp nemusg.com nemusg.com.140803

rsync#

特定のフォルダなどを除外したcpをしたい場合rsyncのが楽らしい

$ rsync [[オプション] コピー元 コピー先

(例)nemusg.comをコピーしたいが、nemusg.com/cache/ だけ除外したい場合

rsync -a nemusg.com/ nemusg.com.140803/ --exclude "/cache/"