$ ftp
ftp >
此时在 ftp>提示符后面输入open 命令加主机名或IP 地址,传输
put (mput) 从本地机传送指定文件到远程机,远程获得这条命令的文件说明。需要在远程机上登录,传输 put 命令的远程一般格式为:
put 文件名
mput 命令一次发送多个本地文件mput 命令的一般格式为:
mput 文件名列表
使用用空格分隔的或带通配符的文件名列表来指定要发送的文件,用ASCII 模式传输文件对纯文本是文件非常好的 ,用户如果在远程机上有帐号,传输在远程机上的远程用户帐号的读写权限决定该用户在远程机上能下载什么文件和将上载文件放到哪个目录中。 ftp 将给出提示符,文件 ftp 命令是传输标准的文件传输协议的用户接口,需要注意的远程是,就不能从远程系统中获得文件或向远程系统传输文件为。文件SFTP命令详解 Linux ftp 远程文件传输
阅读本文后您有什么感想?传输 已有 人给出评价!
- 0


- 0


- 0


- 0


- 0


- 0


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



![[新浪彩票]足彩25162期盈亏指数:诺丁汉森林防平](https://k.sinaimg.cn/n/sports/transform/118/w490h428/20251106/8a4a-f1ad84c9c06e6866cd2e93e8af697d68.jpg/w700d1q75cms.jpg?by=cms_fixed_width)






