《如何將windows上的軟件包或文件上傳到linux服務上》


 

如何將windows上的軟件包或文件上傳到linux服務上,下一句就是如何讓將linux的文件下載到win上。哈哈

 方法不止這一種,有超多的方法,要是虛擬機,它自帶的有share這個選項,你可以點擊vw——set——potion——share

還有以前記得有個軟件,打開以后可以直接打開win和linux的目錄文件,這接拉托就好了。

大部分都是借助一些遠程工具軟件,putty、xshell、SecureCRT ....我主要說這種方法:

我用的是xshell,首先是要軟件連接到你的linux主機,

sz:下載

rz:上傳

下面直接代碼哈:

提示下面命令找不到的請點擊這里

[root@slave-2 ~]# sz
-bash: sz: command not found
[root@slave-2 ~]# rz
-bash: rz: command not found
[root@slave-2 ~]# 

 

 

[sztx@localhost 01]# sz
-bash: sz: command not found
[sztx@localhost 01]# rz
-bash: rz: command not found
[sztx@localhost 01]#

[sztx@localhost 01]# yum search sz
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * epel: ftp.riken.jp
 * extras: centos.01link.hk
 * updates: centos.01link.hk
============================================== N/S Matched: sz ============================================== lrzsz.x86_64 : The lrz and lsz modem communications programs

  Name and summary matches only, use "search all" for everything.
[sztx@localhost 01]# yum install -y lrzsz
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * epel: mirror.pregi.net
 * extras: centos.01link.hk
 * updates: centos.01link.hk
Resolving Dependencies
--> Running transaction check
---> Package lrzsz.x86_64 0:0.12.20-27.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================
 Package               Arch                   Version                             Repository            Size
=============================================================================================================
Installing:
 lrzsz                 x86_64                 0.12.20-27.1.el6                    base                  71 k

Transaction Summary
=============================================================================================================
Install       1 Package(s)

Total download size: 71 k
Installed size: 159 k
Downloading Packages:
lrzsz-0.12.20-27.1.el6.x86_64.rpm                                                     |  71 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : lrzsz-0.12.20-27.1.el6.x86_64                                                             1/1 
  Verifying  : lrzsz-0.12.20-27.1.el6.x86_64                                                             1/1 

Installed:
  lrzsz.x86_64 0:0.12.20-27.1.el6                                                                            

Complete!
[sztx@localhost 01]# 

下面我們來看看上傳的過程:當你輸入rz命令回車,它會跳出一個談話框,讓你選擇文件。

點中你想要上傳的文件,點擊打開。會出現上傳的過程,我的文件可能大點,要是小文件,秒到。

下面就上傳成功了,上傳到你當前路徑下。

下面來看看下載命令sz的使用。我當前的路徑root是家目錄,下載那個文件、

下載成功后會下載到win的目錄中。

就實現了在xshell上直接在linux機器上上傳下載操作。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM