从Linux服务器下载文件夹到本地

服务器 木人张 3年前 (2020-03-09) 907次浏览 0个评论 扫描二维码

从Linux服务器下载文件到本地

scp /home/test/source.txt [email protected]:/home/test/   #把本地的source.txt文件拷贝到192.168.0.1机器上的/home/test目录下
 
scp [email protected]:/home/test/source.txt /home/test/   #把192.168.0.1机器上的source.txt文件拷贝到本地的/home/test目录下
 
scp [email protected]:/home/test/source.txt [email protected]:/home/test/   #把192.168.0.1机器上的source.txt文件拷贝到192.168.0.2机器的/home/test目录下
 
scp -r /home/test/sourcedir [email protected]:/home/test/   #拷贝文件夹,加-r参数

木人张,版权所有丨如未注明 , 均为原创,禁止转载。
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址