scp 命令
时间:2009-08-14 来源:Lovezoe
又受了点打击,自以为linux下命令没问题的我,又给打击了。
记录下这个命令。
本地的档案拷贝到远程的机器上
会将本地的 a.txt这个文件拷贝到 DB01的服务器上,使用者 mouse 的家目录下。
远程机器上的文件拷贝到本地来
scp test@DB01:/home/mouse/b.txt ./
会将 DB01:/home/mouse/b.txt文件到本地的当前目录下。
保持从来源 host 档案的属性 scp -p 的参数 如果想使用特定端口 使用 scp –P(大写) 如
scp –P 1234 test@DB01:/home/mouse/b.txt /home/senwei/
scp /home/senwei/a.txt test@DB01:/home/mouse/ |
会将本地的 a.txt这个文件拷贝到 DB01的服务器上,使用者 mouse 的家目录下。
远程机器上的文件拷贝到本地来
scp test@DB01:/home/mouse/b.txt ./
会将 DB01:/home/mouse/b.txt文件到本地的当前目录下。
保持从来源 host 档案的属性 scp -p 的参数 如果想使用特定端口 使用 scp –P(大写) 如
scp –P 1234 test@DB01:/home/mouse/b.txt /home/senwei/
相关阅读 更多 +