scp远程复制文件和目录
2015-07-16 16:43
239 查看
注意scp只能在linux操作系统平台上,要想在linux与window平台上传文件或者目录,下载一个winscp软件或者下载一个sshsecure shell软件安装在window上即可,非常方便,直接拖拉就行。
1.上传本机文件到远程服务器
scp local_path/file_nameuser_name@remote_ip:remote_path/
2.上传本机目录到远程服务器
scp -r local_path/fold_name user_name@remote_ip:remote_path/
3.拷贝远程服务器文件到本机
scp user_name@remote_ip:remote_path/file_name local_path/
4.拷贝远程服务器目录到本机
scp -ruser_name@remote_ip:remote_path/folder_name local_path/
至于其他方式也有,具体没有列出来,但是我想掌握这几种,在远程拷贝上就应该够用了
1.上传本机文件到远程服务器
scp local_path/file_nameuser_name@remote_ip:remote_path/
2.上传本机目录到远程服务器
scp -r local_path/fold_name user_name@remote_ip:remote_path/
3.拷贝远程服务器文件到本机
scp user_name@remote_ip:remote_path/file_name local_path/
4.拷贝远程服务器目录到本机
scp -ruser_name@remote_ip:remote_path/folder_name local_path/
至于其他方式也有,具体没有列出来,但是我想掌握这几种,在远程拷贝上就应该够用了
相关文章推荐
- aspx页面导入命名空间
- 引用数据类型参数传递
- 基于Hibernate+Spring+Spring MVC+Bootstrap的管理系统实现
- cocos2d-x初探学习笔记(28)--CCTMXTiledMap
- cocos2d-x初探学习笔记(27)--CCMutableArray
- 在 linux 下使用 CMake 构建应用程序
- ul li内的文字水平居中显示
- c语言栈 《个人理解》
- Apriori算法简单总结
- jquery datatables 翻页 用法
- 机器学习1:信息熵
- 内存分配方式
- memcached实战事例
- LintCode 最近公共祖先
- popupWindow弹出来后,背景变暗
- c#获取汉字的字节长度
- UVa 11015 - 05-2 Rendezvous
- Makefile中常用的函数
- cocos2d-x初探学习笔记(26)--其他(游戏存档,切换高清,图片处理)
- cocos2d-x初探学习笔记(25)--CCRenderTexture