linux不需要安装vxftpd也可以使用ftp命令(FTP客户端)。
在大多发行版都有打包,请到各大发行版的ftp列表中得到,或者在发行版的安装盘中也能得到。lftp是一个命令行式的ftp客户端。对中文支持较好。如果您在linux 的text模式下,要安装zhcon或者cce之类的。
安装:
1、RPM包管理的系统,请到
http://freshrpms.net
http;//rpmfind.net 上查找lftp的最新包,可以用
#rpm -ivh name.rpm
#rpm -Uvh name.rpm 这是升级之用
2、源码包安装举例:lftp-3.2.0.tar.bz2
#tar zxvf lftp-3.2.0.tar.bz2
#cd lftp-3.2.0
#./configure
#make
#make install
3.调用方法:
lftp ftp://用户名:密码@地址
比如:
[beinan@S01~]$lftp ftp://[email protected]
口令:
lftp [email protected]:~>
lftp [email protected]:~>ls
-rw-r--r-- 1 1000 100 44387 May 18 10:04 xvmain.jpg
-rw-r--r-- 1 1000 100 202643 May 18 09:45 xxx.jpeg
-rw-r--r-- 1 1000 100 0 May 20 10:01 鲨鱼的故事.txt
二、使用方法:
0.简单的用法:lcd 切换本地目录,比如 lcd /opt
get 取回一个文件,put 向ftp服务器传文件;
1、获得帮助:
代码:
lftp [email protected]:~> help
!<shell-command>(commands)
alias [<name> [<value>]]anon
bookmark [SUBCMD] cache [SUBCMD]
cat [-b] <files>cd <rdir>
chmod [OPTS] mode file... close [-a]
[re]cls [opts] [path/][pattern] debug [<level>|off] [-o <file>]
[options] <dirs> exit [<code>|bg]
get [OPTS] <rfile> [-o <lfile>] glob [OPTS] <cmd> <args>
help [<cmd>]history -w file|-r file|-c|-l [cnt]
jobs [-v] kill all|<job_no>
lcd <ldir>lftp [OPTS] <site>
ls [<args>] mget [OPTS] <files>
mirror [OPTS] [remote [local]]mkdir [-p] <dirs>
mole name [args]more <files>
mput [OPTS] <files> mrm <files>
mv <file1> <file2>[re]nlist [<args>]
open [OPTS] <site>pget [OPTS] <rfile> [-o <lfile>]
put [OPTS] <lfile> [-o <rfile>] pwd [-p]
queue [OPTS] [<cmd>]quote <cmd>
repeat [delay] [command]rm [-r] [-f] <files>
rmdir [-f] <dirs> scache [<session_no>]
set [OPT] [<var> [<val>]] site <site_cmd>
source <file> user <user|URL> [<pass>]
version wait [<jobno>]
zcat <files>zmore <files>
如果针对lftp的每个命令的帮助,应该是:
lftp [email protected]:~> help 命令
比如
代码:
lftp [email protected]:~> help get
用法: get [OPTS] <rfile> [-o <lfile>]
Retrieve remote file <rfile> and store it to local file <lfile>.
-o <lfile> specifies local file name (default - basename of rfile)
-ccontinue, reget
-Edelete remote files after successful transfer
-ause ascii mode (binary is the default)
-O <base> specifies base directory or URL where files should be placed
简介:gftp基于gtk的ftp客户端,大家用的也比较多吧,支持中文目录。如果您的gftp不能支持中文,请升级版本。
# 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 you to quickly connect to remote sites
下载安装:
在各大发行版中,都有gftp的打包,可以用各发行版自带的工具来安装。我只说源码包安装:
源码包安装,通用于所有发行版,举例说明:gftp-2.0.18.tar.bz2
代码:
[root@S01ftp]#ls -lh
总用量 1.4M
-rw-r--r--1 root root 1.4M 2005-05-21 09:18 gftp-2.0.18.tar.bz2
[root@S01ftp]#tar jxvf gftp-2.0.18.tar.bz2
[[email protected]]#./configure
[[email protected]]#make
[[email protected]]#make install
注:因为gftp依赖gtk,如果不能make过去,您应该指定PKG_CONFIG_PATH
[[email protected]]# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
调用:
代码:
[[email protected]]#gftp
㈡ redhat linux自带ftp怎么装
yum install -y tftp-server 可以用来搭 ftp服务器
yum install -y lftp可以用来在命令行下访问ftp
右上角place里面的链接到server可以直接ftp访问其他的服务器
㈢ Linux下面的vsftpd和lftp区别
vsftpd 是linux下一个比较常见的ftp服务器
lftp 只是一个命令行方式的ftp客户端
㈣ 怎么在Linux centOS 下使用命令"yum install lftp -y"安装lftp发生下面错误,,跪求大神帮忙,好急啊
从截图上看,你的网络源,没有连网成功(Couldn't resovle host)。
本地源,没有挂载光驱,(Couldnnot open read file:///)。
两者解决其一即可。
㈤ Linux中lftp命令
ncftp 工具的使用
ftp 全名为 File Transfer Protocol(档案传输协定),File Transfer Protocol 主要的功用是在 TCP/IP 网路上传送档案,常见的 ftp 工具有 ,ftp gftp lftp ncftp mc proz wget 等。档案传输在系统管理及运用上十分常见,请务必学会其中一种,以下以 ncftp 示范。
##########################################################################
行前教育
ncftp 的使用方法与 command line 下的 Bash 用法相近,以下是常用指令:
cd 切换目录
mkdir 建立目录
rmdir 砍掉空目录
del 砍掉档案
get 取回档案
put 将档案放上去
##########################################################################
使用 ncftp 登入需帐号密码的 ftp server
语法为 ncftp -u USERNAME IP-address
or
语法为 ncftp -u USERNAME Hostname
##########################################################################
lloyd@alver:~$ ncftp -u lloyd 127.0.0.1
NcFTP 3.1.3 (Mar 27, 2002) by Mike Gleason ([email protected]).
Connecting to 127.0.0.1...
alver.coventive.com FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.
Logging in...
Password requested by 127.0.0.1 for user "lloyd".
Password required for lloyd.
Password: ## 输入密码 ##
Linux alver 2.4.18 #22 周六 8月 3 10:58:28 CST 2002 i686 unknown
Most of the programs included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each program
are described in the indivial files in /usr/share/doc/*/right
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
User lloyd logged in.
Logged in to 127.0.0.1.
ncftp /home/lloyd > cd DOC/ # 切换目录到 DOC
ncftp /home/lloyd/DOC > ls # 列出该目录下的档案与目录
123/ LLOYD/ tech-report.ps VCD
5_SGML/ minigateway/ user_manual.pdf XRoadTerm/
i18n/ radius/ user_manual.ps XRoadTerm.tar.gz
ncftp /home/lloyd/DOC > help # 线上求助
Commands may be abbreviated. 'help showall' shows hidden and unsupported
commands. 'help <command>' gives a brief description of <command>.
ascii cat help lpage open quote site
bgget cd jobs lpwd page rename type
bgput chmod lcd lrename pdir rhelp umask
bgstart close lchmod lrm pls rm version
binary debug lls lrmdir put rmdir
bookmark dir lmkdir ls pwd set
bookmarks get lookup mkdir quit show
ncftp /home/lloyd/DOC > get XRoadTerm.tar.gz # 以 get 取回 XRoadTerm.tar.gz 档案
XRoadTerm.tar.gz: 20.50 kB 563.41 kB/s
ncftp /home/lloyd/DOC > quit # 离开
You have not saved a bookmark for this site.
Would you like to save a bookmark to:
ftp://lloyd:[email protected]/DOC/
Save? (yes/no) no # 要储存帐号密码当成 bookmark 使用吗?
# 建议回答 no
Not saved. (If you don't want to be asked this, "set confirm-close no")
lloyd@alver:~$ ls -l XRoadTerm.tar.gz # 回到 shell 下,查看档案是否抓回来了
-rw-r--r-- 1 lloyd lloyd 20993 6月 24 14:19 XRoadTerm.tar.gz
lloyd@alver:~$
##########################################################################
使用 ncftp 登入提供 anonymous 的 ftp server (公众使用无须帐号密码的 ftp
server )
语法为 ncftp P-address
or
语法为 ncftp Hostname
以下以中山 ftp server 为例:
##########################################################################
lloyd@alver:~$ ncftp ftp.nsysu.e.tw # 除了这里不同外其余用法相同
NcFTP 3.1.3 (Mar 27, 2002) by Mike Gleason ([email protected]).
Connecting to 140.117.11.7...
====================================================================
欢迎光临档案服务器.
Welcome to National Sun Yat-Sen University FTP Server (ftp.nsysu.e.tw).
右列网址提供本站档案搜寻引擎
File Search Engine on the URL
目前 FTP 部份有 289 人正在线上,最高限制 5000 人.
There are currently 289 users out of 5000 possible.
====================================================================
Only anonymous FTP is allowed here. Please login as 'ftp'.
Logging in...
========================================================================
!!!! Important Function !!!! (重要功能介绍)
o 'cd key*word' or 'cd prefix*' or 'cd *suffix' provided (case-insentive).
(例:cd freebsd 可以打成 cd fr 或 cd *sd 或 cd f*e*d 都通用,大小写都行)
========================================================================
请多多利用 <A HREF=""></A>
可以使用方便的档案搜寻引擎喔!!!!!!!!!!!!!!!!!
========================================================================
ADM.Email: [email protected]
Anonymous user (202.145.53.89) logged in
Unknown command
Logged in to ftp.nsysu.e.tw.
ncftp /pub > cd Windows
ncftp /pub/Windows > ls
Collection/ Mobile@ SAC@ WindowsNT/
Demo/ MsDownload/ Simtelnet/ Winsock-l/
ncftp /pub/Windows > cd Collection/
ncftp /pub/Windows/Collection > ls
CDR-Soft/ Image/ MultiMedia/ Sound/
Driver/ LIB/ Network/ WWW/
ncftp /pub/Windows/Collection > quit
You have not saved a bookmark for this site.
Would you like to save a bookmark to:
ftp://ftp.nsysu.e.tw/Windows/Collection/
Save? (yes/no) no
Not saved. (If you don't want to be asked this, "set confirm-close no")
lloyd@alver:~$
请参考,希望能帮到你。
㈥ linux怎么安装lftp命令
红帽系(RHEL/CentOS等)直接执行
yum -y install lftp
就可以了(当然前提是能联网或者有本地yum源)
也可以用DVD镜像里的lftp安装包离线安装。
㈦ linux怎么知道lftpd已经安装
rpm -qa | grep lftpd
已安装:显示具体的版本号
没安装则不显示任何东西
㈧ suse linux 自带lftp吗
不需要刷bios的 只要设置启动项就行了 如果你不想光驱安装 那u盘安装 或是硬盘安装也是可以行的