1、登录到远方的ftp服务器,并输入用户,密码
root@localhost list]# ftp 19.129.81.5
Connected to 19.129.81.5.
220 (vsFTPd 2.2.2)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (19.129.81.5:root): gov
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
2、为了查看下载文件的进度,特别是下载比较大的文件的时候,等待比较长的时间,也不知道是否网络已经断开,经查看,可以使用“hash”命令
显示下载的进度,每输出一个“#”代表1024 bytes=1Kb
操作如下
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
3、进行下载文件
ftp> get gbe_2015_01.txt /home/data/nanhaiWater/list/gbe_2015_01.txt
local: /home/data/nanhaiWater/list/gbe_2015_01.txt remote: gbe_2015_01.txt
227 Entering Passive Mode (19,129,81,5,23,132)
150 Opening BINARY mode data connection for gbe_2015_01.txt (10385000 bytes).
##########################################################################################