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] Mode 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] pget [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
If the Help for each command for LFTP, it should be:
Lftp beinan@192.168.1.2:~> help command
Like what
Code:
lftp beinan@192.168.1.2:~> help get
Usage:
get [OPTS] [-O]
Retrieve remote file and store it to the local file.
-o Specifies local file name (Default-basename of Rfile)
-C Continue, Reget
-e Delete remote files after successful transfer
-A Use ASCII mode (binary is the default)
-o Specifies base directory or URL where files should be placed
Introduction: GFTP Based on GTK FTP client, we use a lot of it, support Chinese directory. If your gftp cannot support Chinese, please upgrade the version.
# written in C and has a text interface and a GTK + 1.2/2.x interface
# Supports The FTP, FTPS (Control connection only), HTTP, HTTPS, SSH and FSP protocols
# FTP and HTTP Proxy Server support
# Supports FXP file transfers (transferring files between 2 remote servers via FTP)
# Supports UNIX, EPLF, Novell, MacOS, VMS, MVS and NT (DOS) style directory listings
# Bookmarks menu to allow your to quickly connect to remote sites