日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

Linux机器件拷贝文件

發(fā)布時間:2025/3/11 linux 16 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Linux机器件拷贝文件 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

常用命令有: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.


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


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.
遞歸地復(fù)制整個目錄

實例:
[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.

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.
遞歸地復(fù)制整個目錄



總結(jié)

以上是生活随笔為你收集整理的Linux机器件拷贝文件的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。