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盤安裝 或是硬碟安裝也是可以行的