トップ/web/linux_command

web/linux_command

最終更新: 2025-01-01 (水) 21:08:28

Linuxのコマンド(?)#

SSH接続とかで使えるはず

ファイルのコピー#

cp#

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

cp -Rp note.nemusg.com note.nemusg.com.240101

rsync#

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

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

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

rsync -a nemusg.com/ nemusg.com.140803/ --exclude "/cache/"
  • Bluesky
  • Hatena