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

熱點內容
java下載文件的文件名 瀏覽:460
神奇寶貝我的世界電腦版伺服器地址 瀏覽:4
shellls命令 瀏覽:762
軍用壓縮餅干怎麼吃 瀏覽:938
人道pdf 瀏覽:610
分類視覺演算法 瀏覽:257
android彈出鍵盤位置 瀏覽:451
安卓怎麼下載愛思助 瀏覽:985
安卓機的呼叫怎麼開啟 瀏覽:355
騰訊伺服器硬碟什麼價 瀏覽:841
交換機關閉所有埠命令 瀏覽:91
程序員可以開網店嗎 瀏覽:115
演算法工程師面試經驗 瀏覽:686
有什麼好用的陪聊app 瀏覽:698
什麼是備中心伺服器 瀏覽:144
linux配置本地yum源 瀏覽:539
半導體器件與工藝pdf 瀏覽:528
超大文件解壓太慢 瀏覽:861
微光app主頁的愛心代表什麼意思 瀏覽:563
程序員和餃子做飯 瀏覽:307