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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值