Linux之ftp命令使用方法及案例Linux之ftp命令使用方法及案例
Example 1:登陆
[root@iZ25ja2kaemZ ~]# ftp 121.199.5.52
Connected to 121.199.5.52 (121.199.5.52).
220 Microsoft FTP Service
Name (121.199.5.52:root): baitongsj
331 User name okay, need password.
Password:
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp ll
?Invalid command
ftp
Example2:dir,cd ,quit 命令用法
ftp dir ./app
227 Entering Passive Mode (121,199,5,52,128,234)
150 Opening ASCII mode data connection for /bin/ls.
total 0
drw-rw-rw-1 usergroup0 Nov9 18:26 .
drw-rw-rw-1 usergroup0 Nov9 18:26 ..
drw-rw-rw-1 usergroup0 Nov9 18:24 Common
drw-rw-rw-1 usergroup0 Nov9 18:24 Conf
drw-rw-rw-1 usergroup0 Nov9 18:19 Lang
drw-rw-rw-1 usergroup0 Nov9 18:23 Lib
drw-rw-rw-1 usergroup0 Nov9 18:26 Runtime
drw-rw-rw-1 usergroup0 Nov9 18:35 Tpl
226 Transfer complete.
ftp cd base
250 Directory changed to /crms/Base
ftp dir
227 Entering Passive Mode (121,199,5,52,128,235)
150 Opening ASCII mode data connection for /bin/ls.
drw-rw-rw-1 usergroup0 Nov9 18:18 .
drw-rw-rw-1 usergroup0 Nov9 18:18 ..
drw-rw-rw-1 usergroup0 Nov9 18:12 Common
drw-rw-rw-1 usergroup0 Nov9 18:13 Conf
drw-rw-rw-1 usergroup0 Nov9 18:17 Extend
-rw-rw-rw-1 usergroup1854 Jan 182016 LICENSE.txt
drw-rw-rw-1 usergroup0 Nov9 18:17 Lang
drw-rw-rw-1 usergroup0 Nov9 18:17 Lib
-rw-rw-rw-1 usergroup5600 Jan 182016 README.txt
-rw-rw-rw-1 usergroup1568 Jan 182016 ThinkPHP.php
drw-rw-rw-1 usergroup0 Nov9 18:18 Tpl
-rw-rw-rw-1 usergroup7396 Jan 182016 logo.png
226 Transfer complete.
ftp quie
?Invalid command
ftp quit
221 Goodbye!
[root@iZ25ja2kaemZ ~]#
example3:帮助文件
ftp help
Commands may be abbreviated.Commands are:
!debugmdirsendportsite
$dirmgetputsize
accountdisconnectmkdirpwdstatus
appendexitmlsquitstruct
asciiformmodequotesystem
bellgetmodtimerecvsunique
binaryglobmputregettenex
byehashnewerrstatustick
casehelpnmaprhelptrace
cdidlenlistrenametype
cdupimagentransresetuser
chmodlcdopenrestartumask
closelspromptrmdirverbose
crmacdefpassiverunique?
deletemdeleteproxysend
ftp help dir
dirlist contents of remote directory
ftp help mdir
mdirlist contents of multiple remote directories
ftp
example4:重命名文件
ftp dir
227 Entering Passive Mode (121,199,5,52,128,234)
150 Opening ASCII mode data connection for /bin/ls.
drw-rw-rw-1 usergroup0 Nov9 18:46 .
drw-rw-rw-1 usergroup0 Nov9 18:46 ..
drw-rw-rw-1 usergroup0 Nov9 18:39 Install
drw-rw-rw-1 usergroup0 Nov9 18:36 appImg
drw-rw-rw-1 usergroup0 Nov 11 11:08 css
drw-rw-rw-1 usergroup0 Nov9 18:37 excelmodel
drw-rw-rw-1 usergroup0 Nov9 18:46 file
drw-rw-rw-1 usergroup0 Nov9 18:37 ico
drw-rw-rw-1 usergroup0 Nov9 18:38 img
drw-rw-rw-1 usergroup0 Nov 11 11:11 js
-rw-rw-rw-1 usergroup3 Oct 25 15:56 ni.txt
drw-rw-rw-1 usergroup0 Nov9 18:46 sound
drw-rw-rw-1 usergroup0 Nov9 18:46 sql
226 Transfer complete.
ftp rename ni.txt ss
350 File or directory exists, ready for destination name
250 RNTO command successful.
ftp dir
227 Entering Passive Mode (121,199,5,52,128,235)
150 Opening ASCII mode data connection for /bin/ls.
drw-rw-rw-1 usergroup0 Nov 16 16:57 .
drw-rw-rw-1 usergroup0 Nov 16 16:57 ..
drw-rw-rw-1 usergroup0 Nov9 18:39 Install
drw-rw-rw-1 usergroup0 Nov9 18:36 appImg
drw-rw-rw-1 usergroup0 Nov 11 11:08 css
- 如何使用cmd命令行提示符登录mysql服务器 cmd中登陆mysql
- redis的热点数据缓存 redis热点数据切换
- redis缓存 redis缓冲常用命令
- 如何修改戴尔服务器的IP地址? 戴尔服务器ip地址怎么改
- mysql中ext
- 优惠券功能的业务流程设计图谱 优惠券redis处理
- redis通配符的使用
- redis是开发工具吗 redis的开发人是谁
- mysql备份一个表的数据 备份一个mysql库
- mysql中删除记录的命令 mysql删除中继日志
