【ftp操作命令】 卹p常用操作命令的选项及其说明如表6-3所示 16 表63tp操作命令 1TP服务器 idle[seconds 将远程服务器的休眠计时器设为 seconds肋 Image 设置二进制传输方式(同bin) 12FTP文件传输命令 将本地工作目录切换至dr is(remote-diri local-file显示远程目录 remote-dir,并存入本地文件 local-file macdef macro-name定义一个宏,遇到 made下的空行时,宏定义结束 刪涂远程主机文件 mdir remote-files local-file与dr类似,但可指定多个远程文件,如:mdr、o、、 zipoutfile mget remote-files传输多个远程文件 mode(codename|将文件传输方式设置为 codename,缺省为 stream方式 modtime fle-name显示远程主机文件的最后修改时间 将多个文件传输至远程主机 newer file-name 如果远程机中 e-name的修改时间比本地硬盘网名文件的时间更 近,则重传该文件 nlistremote-dirltlocal-file)显示远程主机目录的文件清单,并存入本地硬盘的cane 置文件名映射机制,使得文件传输时,文件中的某些字符相互转 ,如:mmap$1、52、s3151,52]、152,s3],则传输文件a a2、a3时,文件名变为a1,a2。该命令特别适用于远程主机为丰 UNⅨX机的情况 ntrans inchars outchars> 设置文件名字符的翻译机制,如nans1R,则文件名LLL将变为 RRR open hostpo建立指定服务器连接,可指定连接端口 进入被动传输方式 设置多个文件传输时的交互提示 E欠要控制连接中,执行一条命令,该命令允许连擦两个t服 问南中医药大学/阮晓龙/13938213 proxy ftp-cmd 务器,以在两个服务器间传输文件。第一条f命令必须为open,以 首先建立两个服务器闰的连接
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 1.FTP服务器 16 1.2 FTP文件传输命令
t操作命令 n常用操作命令的选项及其说明如表6-3所示。 表63tp操作命令 1FTP服务器 显示远程主机的当前工作目录 12FTP文件传输命令 quote arg1,ag2、、将参数逐字发至远程№服务器,如: quote syst reget remote- file[local- 类似于get,但若 locak-file存在,则从上次传输中断处续餞 help(cmd-name请求获得远程主机的帮助 tatus file-name)|若未指定文件名,则显示远程主机的态,否则显示文件状态 estart marker从指定的标志makr处,重新开始9t或pt,如: restart130 除远程主机目录 设置文件名只一性存储,若文件存在,贝在原文件后加后缓、1 site arg1, arg2 将参数作为STE命令逐字发送至远程仰主机 size file-name 显示远程主机文件大小,如: site idle7200 显示当前fp状态 struct(struct-namel将文件传输结构设置为 struct-name,缺省时使用stem结构 将远程主机文件名存储设置为只一(与 unique对应) system 显示远程主机的操作系统类型 将文件传输类型设置为 TENEX机的所需的类型 设置传输的字节计数器 trace 设置文件传输类型为 type-name,缺省为asci,如 type binary,设 置二进制传输方 umasknewmask将远程服务器的缺省 umask设置为 netmask,如: umask3 向远程主机表明自己的身份,需要口令时,必须输入口令,如 河南中医药大学/阮晓龙/13938213 namelpasswordlaccount anonymous mygemai
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 1.FTP服务器 17 1.2 FTP文件传输命令
g 211.69.35.213-CentOS 7-Teach roote centos7Teach:- Shell 5(Free for Home/School) 文件)编端日查器(工具①语项卡(B)口0帮助(H6 ssh//root 8 ·团·Q,命·6·A·:自白,·②”降加,左的 121169.35213 CentoS7 1FTP服争说 tos7Teach -]# rror speeds from cached hostfile FTP文件传输命令 s extras: ftp situ. edu.cn encles ---> Package ftp x86_64 0: 0. 17-67e17 will be installed ->Fini shed Dependency Resolution Dependencies Resolved Package ch Version Repository X8664 0.17-67e17 61k Transaction summary Install 1 Package Total download size: 61 k Installed size: 96 k Is this ok [y/d/N]: y Running transaction chec ransaction te Transaction test succeeded rifying:ftp-0.17-67.e17.x86_64 Installed 640:0.17-67,e17 Complete 仅将攻本发送到前选项卡 河南中医药大学/阮晓龙/mm2 rBoc40使40241会活4 CAP NUN
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 1.FTP服务器 18 1.2 FTP文件传输命令
g 211.69.35.213-CentOS 7-Teach roote centos7Teach:- Shell 5(Free for Home/School) 文件)编端日查器(工具①语项卡(B)口0帮助(H6 ssh//root 19 ·团·Q,命·6·A·:自白,·②”降加,左的 121169.35213 CentoS7 1.FTP服 [rootecentos7Teach-]ftp resource. hactcmec we Icome to FTP文件传输命令 220-Local time is now 08: 57. Server port: 21. 220-This is a private syster 20-IPv6 connections are also welcome on this server inutes of inactivity 331User hactcm OK. Password required 230 OK. current directory is/ Remote system type 1s UNIX i50 ccepted da3e21,9.3253,1,216 drw> 82 drwxrwxrwx 8 2 8Apr24201 drwxrwx-_- 7 10000 rwxrwx 视剧 drwxrwx--- 18 10000 017课程 drww---3210000 32N。v1015:23软件 rwxrwx 12100001 017音乐 rrent directory is/软件 227 Entering Passive Mode (211, 69, 33, 253, 119, 86) 150 Accepted data connection 99999 42017 rwxrwx 6100001 62017专 rwxrwx 2017云主机 drwxrwx 000 2017大数据 drwxrwx 1 仅将攻本发送到前选项卡 河南中医药大学/阮晓龙/mm2 rB040140,61会活量4
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 1.FTP服务器 19 1.2 FTP文件传输命令
g 211.69.35.213-CentOS 7-Teach roote centos7Teach:- Shell 5(Free for Home/School) 文件)编端日查器(工具①语项卡(B)口0帮助(H6 ssh//root 20 ·团·Q,命·6·A·:自白,·②”降加,左的 121169.35213 CentoS7 1FTP服 [root@centos7Teach-]ftpresource.hactcm.edu.cn cted to resource. hactcm. edu. cn (211. 69. 33. 253) We come to FTP文件传输命令 220-You are user number 1 of 96 allowed e syste anonymous logit 220 You will be disconnected after 10 minutes of inactivity Name (resource. hactcm. edu. cn: root): hactcm 331 User hactcm oK. Password Password ur bandwidth usage is restricted 230 OK. current directory is Remote system type 1s UNIX files directory now /h rectory now/home assive Mode(z11,69,33,253,118,62) 150 Accepted data connection 201 drwxrwxrw 99999 262017电景 99999 an42017电视剧 drwxrwx---18100001 3an112017科教 99999 99999 32NV1015:23软件 rwxrwx 99999 2268 matches total 河南中医药大学/阮晓龙/mm2 rB0403761会活4 CAP NUM
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 1.FTP服务器 20 1.2 FTP文件传输命令