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/