Installation:
Yum-y Install FTP
Basic Commands:
refer To:http://man.linuxde.net/ftp
Example:
[Root@nh-cdh-24 setuptools-1.4.2]# FTP 172.28.4.200
Connected to 172.28.4.200 (172.28.4.200).
Welcome to blah FTP service.
Name (172.28.4.200:root): Ops_user
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
Ftp> CD Bond
Directory successfully changed.
Ftp> CD Guohai
Directory successfully changed.
Ftp> dir
Entering passive Mode (172,28,4,200,24,204).
Here comes the directory listing.
-rw-r--r--1503 504 154107518Jan 09:47 deploy_package.tar.bz2
-rw-r--r--1503 504 336204908Jan 09:51 sql_data.tar.bz2
Directory send OK.
Ftp> Mget *
Mget deploy_package.tar.bz2? Y
Entering passive Mode (172,28,4,200,26,41).
Opening BINARY Mode data connection fordeploy_package.tar.bz2 (154107518 bytes).
Transfer complete.
154107518 Bytes received in 3.95 secs (38978.36 kbytes/sec)
Mget sql_data.tar.bz2? Y
Entering passive Mode (172,28,4,200,24,68).
Opening BINARY Mode data connection forsql_data.tar.bz2 (336204908 bytes).
Transfer complete.
336204908 bytes received in 7.53 secs (44647.06 kbytes/sec)
Ftp> by
221 Goodbye.
[Root@nh-cdh-24 setuptools-1.4.2]# LL