First, Introduction:
Packaged in most distributions, please go to the FTP list for each major release, or you can get it on the installation disk of the distribution. Lftp is a command-line-style FTP client. Good support for Chinese. If you are in the Linux text mode, install Zhcon or CCE.
Installation:
1, RPM package management system, please go to
Http://freshrpms.net
Http;//rpmfind.net to find the latest package on LFTP, you can use
#rpm-IVH name.rpm
#rpm-UVH name.rpm This is for upgrade
2, source Package installation Example: LFTP-3.2.0.TAR.BZ2
#tar ZXVF lftp-3.2.0.tar.bz2
#cd lftp-3.2.0
#./configure
#make
#make Install
3. Call Method:
Lftp ftp://Username: password @ address
Like what:
[beinan@s01~] $lftp ftp://beinan@192.168.1.2
Password:
Lftp beinan@192.168.1.2:~>
Lftp Beinan@192.168.1.2:~>ls
-rw-r--r--1 1000 44387 may 10:04 xvmain.jpg
-rw-r--r--1 1000 202643 may 09:45 Xxx.jpeg
-rw-r--r--1 1000 0 May 20 10:01 shark story. txt
Second, the use of methods:
0. Simple usage: LCD switch local directory, such as Lcd/opt
Get retrieve a file, put the file to the FTP server;
1. Get help:
Code:
lftp beinan@192.168.1.2:~> Help
! (commands)
alias [[]] anon
Bookmark [subcmd] cache [Subcmd]
Cat [-b] CD
chmod [OPTS] Mo De file ... close [-a]
[RE]CLS [opts] [Path/][pattern] debug [|off] [-O]
du [options] exit [|BG]
Get [OPTS] [o] glob [OPTS]
Help [] history-w file|-r file|-c|-l [cnt]
Jobs [-v] Kill all|
LCD lftp [OPTS]
ls [] mget [OPTS]
Mirror [OPTS] [remote [local]] mkdir [p]
module name [args] more
Mput [OPTS] MRM
MV [re]nlist []
Open [OPTS] pg ET [OPTS] [-O]
put [OPTS] [o] pwd [p]
Queue [OPTS] [] quote
Repeat [delay] [command] RM [ -R] [f]
RmDir [-f] scache []
Set [OPT] [[]] site
Source user []
version Wait []
Zcat Zmore