您现在的位置是:探索 >>正文
Linux ftp 远程文件传输
探索76人已围观
简介Linux ftp 远程文件传输我要评论 2014/07/08 21:11:13 来源:绿色资源网 ...
open 连接远程 ftp 站点
quit 断开与远程机的传输连接并退出 ftp
? 显示本地帮助信息
! 转到 Shell 中
示例:
使用 ftp 传输文件过程如下
[root@localhost root]# ftp 192.168.1.66
Connected to 192.168.1.66 (192.168.1.66).
220 localhost.localdomain FTP server (Version wu-2.6.2-5) ready.
Name (192.168.1.66:root): test
331 Password required for test.
Password:
230 User oracle logged in. Access restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192.168.1.66,228,168)
150 Opening ASCII mode data connection for directory listing.
total 312
-rw-r--r-- 1 root root 1215 Feb 4 13:49 button1.jpg
-rw-r--r-- 1 root root 1133 Feb 4 13:49 button2.jpg
-rw-r--r-- 1 root root 1435 Feb 4 13:46 index.html
226 Transfer complete.
ftp> lcd
Local directory now /root
ftp> lcd tmp
Local directory now /root/tmp
ftp> bin
200 Type set to I.
ftp> mget *.jpg
mget button1.jpg? y
227 Entering Passive Mode (10,153,89,66,187,198)
150 Opening BINARY mode data connection for button1.jpg (1215 bytes).
226 Transfer complete.
1215 bytes received in 0.0119 secs (1e+02 Kbytes/sec)
mget button2.jpg? y
227 Entering Passive Mode (10,153,89,66,243,218)
150 Opening BINARY mode data connection for button2.jpg (1133 bytes).
226 Transfer complete.
1133 bytes received in 0.00223 secs (5e+02 Kbytes/sec)
ftp> quit
221-You have transferred 2348 bytes in 2 files.
221-Total traffic for this session was 3315 bytes in 3 transfers.
221-Thank you for using the FTP service on localhost.localdomain.
221 Goodbye.
关键词:Linux,ftp
阅读本文后您有什么感想? 已有 人给出评价!
- 0


- 0


- 0


- 0


- 0


- 0


Linux ftp 远程文件传输
ftp 命令是标准的文件传输协议的用户接口,如果用户没有那个文件的存取权限,对其中的每个文件都要求用户确认是否发送。用户必须知道远程计算机上的合法用户名和口令,
最常用的命令有:
ls 列出远程机的当前目录
cd 在远程机上改变工作目录
lcd 在本地机上改变工作目录
ascii 设置文件传输方式为 ASCII 模式,用户可以在目录中上下移动、并用来确定用户对要传输的文件可以进行什么样的访问。等待用户输入命令:
$ ftp
ftp >
此时在 ftp>提示符后面输入open 命令加主机名或IP 地址,将试图连接指定的主机。需要注意的是, 用户也可以指定其他模式,就不能从远程系统中获得文件或向远程系统传输文件为。
Tags:
转载:欢迎各位朋友分享到网络,但转载请说明文章出处“龙潭虎窟网”。http://dsvev.ywkgroup.com.ywkgroup.com/html/52f6899879.html
相关文章
小米汽车明年产能有望突破120万辆 你要买辆支持雷军吗?
探索近日有媒体指出,随着北京工厂二期、三期及武汉工厂的陆续投产,小米汽车2026年产能有望突破百万辆,并向120万辆的目标冲刺。上述预测也不是凭空而来,而是基于小米目前的发展现状。根据今年早些时候的行业报 ...
【探索】
阅读更多【】民宿太空舱——智能旅宿新体验
探索...
【探索】
阅读更多玉龙马业3冠1亚2季!玉龙第17赛事日圆满落幕
探索今日9月17日),2022玉龙国际赛马公开赛第17赛事日,五场大赛在玉龙国际赛马场顺利落幕。玉龙马业本赛事日,大放异彩,5场大赛收获3冠1亚2季1殿佳绩!“第一场国产2岁马育马者系列赛未冠赛”:玉龙马 ...
【探索】
阅读更多