Linux机器件拷贝文件
来源:互联网 发布:淘宝虚拟市场怎么加入 编辑:程序博客网 时间:2024/06/05 03:34
常用命令有:sftp,scp
sftp
[root@zengmg develop_soft]# sftp 192.168.255.132
Connecting to 192.168.255.132...
The authenticity of host '192.168.255.132 (192.168.255.132)' can't be established.
RSA key fingerprint is bd:09:eb:22:2f:ed:95:57:ab:89:f0:98:2d:40:35:c9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.255.132' (RSA) to the list of known hosts.
Connecting to 192.168.255.132...
The authenticity of host '192.168.255.132 (192.168.255.132)' can't be established.
RSA key fingerprint is bd:09:eb:22:2f:ed:95:57:ab:89:f0:98:2d:40:35:c9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.255.132' (RSA) to the list of known hosts.
root@192.168.255.132's password:
sftp> put /develop_soft/*.gz /develop_soft/
Uploading /develop_soft/hadoop-2.7.2.tar.gz to /develop_soft/hadoop-2.7.2.tar.gz
/develop_soft/hadoop-2.7.2.tar.gz 100% 202MB 50.6MB/s 00:04
Uploading /develop_soft/jdk-8u73-linux-x64.tar.gz to /develop_soft/jdk-8u73-linux-x64.tar.gz
/develop_soft/jdk-8u73-linux-x64.tar.gz 100% 173MB 28.8MB/s 00:06
sftp> exit
sftp> put /develop_soft/*.gz /develop_soft/
Uploading /develop_soft/hadoop-2.7.2.tar.gz to /develop_soft/hadoop-2.7.2.tar.gz
/develop_soft/hadoop-2.7.2.tar.gz 100% 202MB 50.6MB/s 00:04
Uploading /develop_soft/jdk-8u73-linux-x64.tar.gz to /develop_soft/jdk-8u73-linux-x64.tar.gz
/develop_soft/jdk-8u73-linux-x64.tar.gz 100% 173MB 28.8MB/s 00:06
sftp> exit
SCP
scp -rp user1@host1:/filepath1 user2@host2:/filepath2
-p Preserves modification times, access times, and modes from the original file.
备份模式(修改时间、访问时间及modes)
-r Recursively copy entire directories.
递归地复制整个目录
-p Preserves modification times, access times, and modes from the original file.
备份模式(修改时间、访问时间及modes)
-r Recursively copy entire directories.
递归地复制整个目录
实例:
[root@zengmg develop_soft]# scp *.gz root@192.168.255.133:/develop_soft
The authenticity of host '192.168.255.133 (192.168.255.133)' can't be established.
RSA key fingerprint is bd:09:eb:22:2f:ed:95:57:ab:89:f0:98:2d:40:35:c9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.255.133' (RSA) to the list of known hosts.
RSA key fingerprint is bd:09:eb:22:2f:ed:95:57:ab:89:f0:98:2d:40:35:c9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.255.133' (RSA) to the list of known hosts.
root@192.168.255.133's password:
hadoop-2.7.2.tar.gz 100% 202MB 67.4MB/s 00:03
jdk-8u73-linux-x64.tar.gz 100% 173MB 34.6MB/s 00:05
-p Preserves modification times, access times, and modes from the original file.
备份模式(修改时间、访问时间及modes)
-r Recursively copy entire directories.
递归地复制整个目录
0 0
- Linux机器件拷贝文件
- linux机器间文件拷贝
- linux 跨机器文件相互拷贝:scp
- Linux 下文件拷贝
- Linux系统下不同机器之间拷贝文件的方法
- linux 拷贝文件(本机内和机器之间)
- Linux系统下不同机器之间拷贝文件的方法
- Linux系统下不同机器之间拷贝文件的方法
- linux批量修改密码、拷贝文件至远程机器
- Linux下不同机器之间的文件拷贝
- Linux下 两台机器文件/文件夹 相互拷贝
- 机器间的文件拷贝
- 【linux】 linux下文件拷贝代码
- android make 文件中文件的拷贝
- linux下文件拷贝的例子
- C linux下文件拷贝hello
- linux拷贝文件命令
- linux文件拷贝命令
- 数据结构实验之排序四:寻找大富翁 sdut oj (3401)
- webview Dialog在onPageFinished()中无法dismiss
- php 插入排序算法
- (LeetCode)Happy Number -- 寻找快乐数
- tjut 3443
- Linux机器件拷贝文件
- Android 进程保活
- MySQL数据库的使用(一)
- 如何计算程序的时间复杂度
- 数据库定时备份原理,代码
- 关于json的一些注意点
- [iOS 自定义控件] LFFExcelView 自定义excel表格的控件
- 算法每日练习之判断完数
- HDU 1875 畅通工程再续