Linux與Windows檔案傳輸實現,linux檔案傳輸

來源:互聯網
上載者:User

Linux與Windows檔案傳輸實現,linux檔案傳輸

Linux與Windows檔案傳輸實現

一、概述

     在學習Linux伺服器的時候,我們有時需要與Windows下的檔案進行互動傳輸,這個時候我們需要如何?呢?今天是我第一次在部落格園上寫文章,此時正值學習Linux時期,就來總結一下今天剛剛學習到的檔案傳輸工具PSCP.EXE的使用方法吧。

二、擷取並部署工具

        免費在 http://linux.linuxidc.com/  版本:Release 0.60

      2.部署PSCP.EXE

       自訂路徑   

       1).      拷貝PSCP.EXE到E盤目錄下;

        2).      在運行裡輸入cmd,進入E盤,輸入下面的命令:

                E:\>pscp.exe aa.txt  root@192.168.1.126:/home/     

       建議路徑

       1).     建議將PSCP.EXE放到C:\WINDOWS\system32下面,這樣就可以在任何地方調用了。

        3.  PSCP.EXE的常用方法

          1)     把本地檔案file傳輸到Linxu伺服器的/tmp/

E:\pscp.exe file root@192.168.1.147:/tmp/

或者E:\pscp.exe -l root file 192.168.1.147:/tmp/(這裡-l root要在file之前)

  2)     把本地目錄dir、檔案file傳輸到Linux伺服器的/tmp/,並指定伺服器連接埠2009

E:\pscp.exe -P 2009 -r dir file root@192.168.1.147:/tmp/

  3)     把伺服器上的/tmp/file檔案取回本地目前的目錄

E:\pscp.exe root@192.168.1.147:/tmp/file

  4)     把伺服器上的/tmp/dir目錄取回本地"D:\data\",這裡本地路徑不能有雙引號

E:\pscp.exe -r root@192.168.1.147:/tmp/dir  D:\data\

          

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.