導航:首頁 > 程序命令 > linux上傳文件夾命令行

linux上傳文件夾命令行

發布時間:2023-12-22 22:05:34

『壹』 請教,如何用linux FTP命令,上傳文件到windows指定目錄

通過windows cmd窗口命令

C:\Documents and Settings\Administrator>d:

D:\>e:

step1:ftp登錄

E:\>ftp 128.8.28.212

Connected to 128.8.28.212.
220 (vsFTPd 2.2.2)
User (128.8.28.212:(none)): oracle
331 Please specify the password.
Password:
230 Login successful.

step2:查看目錄中的文件列表

ftp> cd wangxj
250 Directory successfully changed.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
enfo_ods.dmp
enfo_ods.log
tsubject.dmp
tsubject.log
226 Directory send OK.
ftp: 收到 56 位元組,用時 0.00Seconds 56000.00Kbytes

step3:從linux當前目錄下載文

ftp> get enfo_ods.dmp200 PORT command successful. Consider using PASV150 Opening BINARY mode data connection for enfo_ods.dmp (325029888 bytes)226 Transfer complete.ftp: 收到 325029888 位元組,用時 27.39Seconds 11866.74Kbytes/sec.

ftp> get enfo_ods.log
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for enfo_ods.log (13704 bytes).
226 Transfer complete.
ftp: 收到 13704 位元組,用時 0.00Seconds 13704000.00Kbytes/sec.
step4:從windows上傳文件到linux
ftp> put test.ktr;
test.ktr;: File not found
//退出ftp 或者用bye
ftp> quit

E:\>ftp 128.8.28.212

Connected to 128.8.28.212.
220 (vsFTPd 2.2.2)
User (128.8.28.212:(none)): oracle
331 Please specify the password.
Password:
230 Login successful.
ftp> put E:\test.ktr
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
ftp: 發送 23410 位元組,用時 0.00Seconds 23410000.00Kbytes/sec.
ftp>
備註:

ftp是通用協議,不區分系統的。

知道linux機器的IP即可。開始 -> 運行,輸入cmd並回車,鍵入以下命令(前面的>為命令提示符,不用輸入):> ftp Linux機器的IP地址> binary> put windows系統本地文件全路徑 /linux系統上的目標路徑> bye 其中,如果是文本文件,可以不用binary設置為二進制傳輸模式(默認文本模式,會自動轉換文本格式)。如果是非文本文件(例如可執行文件),建議一定要設置為 binary 模式。

建議樓主系統學習下Linux的ftp服務搭建等知識點。《Linux就該這么學》這本書很不錯,裡面有很系統、很全面的圖文介紹!
希望可以幫到您!

閱讀全文

與linux上傳文件夾命令行相關的資料

熱點內容
除法簡便演算法怎麼寫 瀏覽:48
macbookair桌面文件夾 瀏覽:809
64位和32位編程 瀏覽:217
如何記錄訪問伺服器 瀏覽:565
python窗口閃退 瀏覽:180
量子計算機做雲伺服器 瀏覽:251
51單片機有幾個定時器 瀏覽:755
視頻怎麼整成文件夾 瀏覽:974
apple創建文件夾 瀏覽:926
pagetopdf 瀏覽:550
php跨頁面傳遞 瀏覽:575
subversion如何安裝svn伺服器 瀏覽:267
linuxcentos安裝php 瀏覽:269
php安裝msgpack擴展 瀏覽:859
php高級函數 瀏覽:601
怎麼給軟體加密碼vivox9 瀏覽:73
OBD加密狗 瀏覽:362
通達信起飛強勢公式源碼 瀏覽:865
跟程序員吵架的技巧 瀏覽:809
vba列印命令 瀏覽:484