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
推荐阅读
- 如何做电话营销技巧,电话营销怎么做才能业绩好
- html5加日期,html5日期标签
- 游戏里最难的赛车是什么,最难玩的赛车游戏
- jquery下拉框失去焦点,jquery 下拉框变更事件
- 递归函数c语言斐波纳从0 c递归实现斐波那契数列
- 新媒体现状如何,新媒体行业的现状
- 主机屋虚拟机绑定,虚拟机绑定机器码
- vb.net动态数组 vb6 动态数组
- 路由器怎么不显示连接,连接路由器后不显示wifi标志