導航:首頁 > 程序命令 > 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上傳文件夾命令行相關的資料

熱點內容
linux登錄失敗次數 瀏覽:33
linuxread0 瀏覽:332
三軌直銷系統源碼 瀏覽:321
手機銀行app怎麼更新呢 瀏覽:247
單片機匯編學習 瀏覽:531
配1u伺服器主機需要注意什麼 瀏覽:38
演算法工程師小李 瀏覽:633
程序員搬到哪裡買房好 瀏覽:627
steam測試亞洲伺服器怎麼切換 瀏覽:513
vc命令行編譯工程 瀏覽:331
當貝市場解壓步驟 瀏覽:458
哪裡有賣安卓系統的app 瀏覽:472
河南省雲伺服器租賃雲主機 瀏覽:755
基金app哪個好2021年 瀏覽:41
迷你電梯單片機 瀏覽:38
編譯電腦 瀏覽:502
程序員進入網吧 瀏覽:247
cad圖轉換pdf 瀏覽:809
魔域單機版命令 瀏覽:488
ftp伺服器需要開放什麼埠 瀏覽:327