使用pscp.exe 在windows和linux 之間拷貝文件

下載pscp.exe放在 windows/system32目錄裏,任何路徑下即可直接調用命令 pscp  

用法:

1)    把本地文件file傳輸到Linxu服務器的/tmp/
E:\pscp.exe file [email protected]:/tmp/

2)    把本地目錄dir、文件file傳輸到Linux服務器的/tmp/,並指定服務器端口2009
E:\pscp.exe -P 2009 -r dir file [email protected]:/tmp/

3)    把服務器上的/tmp/file文件取回本地當前目錄
E:\pscp.exe [email protected]:/tmp/file "D:\file"

4)    把服務器上的/tmp/dir目錄取回本地"D:\data\"
E:\pscp.exe -r [email protected]:/tmp/dir "D:\data\"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章