Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
scp -prvコマンドを使用して、ディレクトリ/ファイル(/ usr / local / scripts)をUNIXサーバーからLinuxサーバーにコピーしました。コピーは機能しましたが、スクリプト内に別のディレクトリ(/ usr / local / scripts / scripts)が作成されました。どうすれば作成でき、何を削除すればよいので、/ usr / local / scriptsのままになりますか?
cd /usr/local/scripts/scripts cp -r * ../. //Check to make sure it looks good rm -r /usr/local/scripts/scripts
これは超基本的です...
scp -prv /usr/local/scripts host:/usr/local/適切なコピーのために、コンスタンティンがクリーンアップのために言ったこと。
scp -prv /usr/local/scripts host:/usr/local/