This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您可以使用
scp
命令来执行此操作,该命令使用 ssh 协议跨计算机复制文件。它扩展了 cp 的语法以允许引用其他系统:将某些内容从本机复制到其他计算机:
将某些内容从另一台计算机复制到本机:
使用指定的端口号进行复制:
You can do this with the
scp
command, which uses the ssh protocol to copy files across machines. It extends the syntax ofcp
to allow references to other systems:Copy something from this machine to some other machine:
Copy something from another machine to this machine:
Copy with a port number specified:
首先压缩或 gzip 文件夹:
使用以下命令:
或
gzip 压缩使用 SCP 的目录:
First zip or gzip the folders:
Use the following command:
or
for gzip compression use SCP:
如果您正在处理大量文件,您可能还需要查看 rsync。
如果您要进行大量更改并希望保持目录和文件同步,您可能需要使用版本控制系统,例如 Subversion 或 Git。请参阅 http://xoa.petdance.com/How_to:_Keep_your_home_directory_in_Subversion
You may also want to look at rsync if you're doing a lot of files.
If you're going to making a lot of changes and want to keep your directories and files in sync, you may want to use a version control system like Subversion or Git. See http://xoa.petdance.com/How_to:_Keep_your_home_directory_in_Subversion