ftp獲取文件

ftp獲取文件

------------------------------------ftp connect-----------------------------------

[root@app23 data2007-3030]# ftp 172.25.13.56

Connected to 172.25.13.56.

220 (vsFTPd 1.1.3)

530 Please login with USER and PASS.

KERBEROS_V4 rejected as an authentication type

Name (172.25.13.56:root): root

331 Please specify the password.

Password:

230 Login successful. Have fun.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> bin

200 Switching to Binary mode.

ftp> prom

Interactive mode off.

ftp> cd server-data2007-2030

250 Directory successfully changed.

ftp> ls

227 Entering Passive Mode (172,25,13,56,99,36)

150 Here comes the directory listing.

-rw-r--r--    1 0        0          791927 Jul 10 09:15 access.log

drwxr-xr-x    7 0        0            4096 Apr 26 10:14 ldap

-rw-r--r--    1 0        0               5 Jul 09 07:52 server-data2007-2030.0000.tlog

-rw-r--r--    1 0        0               0 Jul 09 07:52 server-data2007-2030.0004.tlog

-rw-r--r--    1 0        0               5 Jul 09 07:52 server-data2007-2030.heur.0000.tlog

-rw-r--r--    1 0        0               0 Jul 09 07:52 server-data2007-2030.heur.0004.tlog

-rw-r--r--    1 0        0         1013797 Jul 10 09:15 server-data2007-2030.log

drwxr-xr-x    2 0        0            4096 May 30 02:38 upload

226 Directory send OK.

ftp> cd upload

250 Directory successfully changed.

ftp> ls

227 Entering Passive Mode (172,25,13,56,160,76)

150 Here comes the directory listing.

-rw-r--r--    1 0        0        36072775 Jul 10 08:48 data2007.war

226 Directory send OK.

----------------從ftp上獲取文件到當前目錄------------------

ftp> get data2007.war

local: data2007.war remote: data2007.war

227 Entering Passive Mode (172,25,13,56,118,250)

150 Opening BINARY mode data connection for data2007.war (36072775 bytes).

226 File send OK.

36072775 bytes received in 3.1 seconds (1.1e+04 Kbytes/s)

<script type="text/javascript"></script>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章