-v Suppresses display of remote server responses. -n Suppresses auto-login upon initial connection. -i Turns off interactive prompting during multiple file transfers. -d Enables debugging. -g Disables filename globbing (see GLOB command). -s:filename Specifies a text file containing FTP commands; the commands will automatically run after FTP starts. -a Use any local interface when binding data connection. -A login as anonymous. -w:buffersize Overrides the default transfer buffer size of 4096. host Specifies the host name or IP address of the remote host to connect to.
Notes: - mget and mput commands take y/n/q for yes/no/quit. - Use Control-C to abort commands.
C:\>ftp ftp> // 进入ftp对话,Enter出现下一个ftp> ftp> ? // 用'?'显示命令提示 Commands may be abbreviated. Commands are:
! delete literal prompt send ? debug ls put status append dir mdelete pwd trace ascii disconnect mdir quit type bell get mget quote user binary glob mkdir recv verbose bye hash mls remotehelp cd help mput rename close lcd open rmdir ftp> ftp> open // 这个open是瞎碰的 To ftp.daxia.com Connected to ftp.daxia.com. 220 Serv-U FTP Server v5.0 for WinSock ready... User (ftp.daxia.com:(none)): daxia.com 331 User name okay, need password. Password: 230 User logged in, proceed. ftp> // 已经进入, 输入帐号“daxia.com”可以看见, 输入 密码“daxia.com”时看不见 ftp> ls // ls命令在linux里和dos的dir类似, 这里用下看是干 什么 200 PORT Command successful. 150 Opening ASCII mode data connection for /bin/ls. _请先阅读.txt _双击进入虾坛.htm 电子工程师手册_超星格式.rar 226-Maximum disk quota limited to 18000000 kBytes Used disk quota 969432 kBytes, available 17030567 kBytes 226 Transfer complete. ftp: 63 bytes received in 0.00Seconds 63000.00Kbytes/sec. ftp> // 只有3个文件, 文件夹怎么没看见? ftp> help ls // 在帮助里查看ls是干什么的 ls List contents of remote directory ftp> help dir // dir和ls解说是一样的 dir List contents of remote directory ftp> dir // 但是这里用dir就看到了根目录下所有的文件和文件 夹 200 PORT Command successful. 150 Opening ASCII mode data connection for /bin/ls. drw-rw-rw- 1 user group 0 Aug 16 01:58 . drw-rw-rw- 1 user group 0 Aug 16 01:58 .. drw-rw-rw- 1 user group 0 Jul 21 10:42 0000 请下载后自己查毒,不 要轻易运行程序文件等。 drw-rw-rw- 1 user group 0 Aug 14 15:45 00000000上传建议把目录打 包后上传,方便下载。 drw-rw-rw- 1 user group 0 Jul 29 17:04 001pic相关 drw-rw-rw- 1 user group 0 Jul 17 21:55 00目录暂时这么多,如果没 有,请自己建立 drw-rw-rw- 1 user group 0 Jul 31 17:46 1芯片相关 drw-rw-rw- 1 user group 0 Aug 9 10:56 2字模&字模 drw-rw-rw- 1 user group 0 Aug 9 11:03 430系列单片机 drw-rw-rw- 1 user group 0 Aug 14 20:01 51系列单片机 drw-rw-rw- 1 user group 0 Jul 27 13:06 AVR单片机 drw-rw-rw- 1 user group 0 Aug 9 10:54 CPLD&FPGA drw-rw-rw- 1 user group 0 Jul 29 16:31 EDA软件 drw-rw-rw- 1 user group 0 Aug 10 11:03 MatLab drw-rw-rw- 1 user group 0 Aug 6 23:27 NI虚拟仪器 drw-rw-rw- 1 user group 0 Jul 17 22:11 PC端驱动、界面程序开发 -rw-rw-rw- 1 user group 597 Jul 21 11:11 _请先阅读.txt -rw-rw-rw- 1 user group 81 Jul 21 11:43 _双击进入虾坛.htm drw-rw-rw- 1 user group 0 Aug 16 01:59 arm drw-rw-rw- 1 user group 0 Aug 14 23:09 c语言 drw-rw-rw- 1 user group 0 Jul 18 14:26 dsp drw-rw-rw- 1 user group 0 Aug 11 21:43 usb相关固件,软件 drw-rw-rw- 1 user group 0 Aug 4 21:24 编译工具(X86) drw-rw-rw- 1 user group 0 Jul 21 08:51 操作系统之(uc)Linux drw-rw-rw- 1 user group 0 Jul 19 21:52 操作系统之uCOSii drw-rw-rw- 1 user group 0 Aug 14 15:45 常用工具软件(跟电子无 关) -rw-rw-rw- 1 user group 7247748 Aug 11 16:49 电子工程师手册_超星格 式.rar drw-rw-rw- 1 user group 0 Aug 13 10:34 蓝牙资料 dr--r--r-- 1 user group 0 Jul 21 17:00 虾友通过大虾论坛上传的一 部分,3579个文件。(请不要往这里传文件) drw-rw-rw- 1 user group 0 Aug 14 20:00 相关行业标准 drw-rw-rw- 1 user group 0 Aug 15 09:27 新文件夹 drw-rw-rw- 1 user group 0 Aug 14 20:04 液晶资料 226-Maximum disk quota limited to 18000000 kBytes Used disk quota 969432 kBytes, available 17030567 kBytes 226 Transfer complete. ftp: 2332 bytes received in 0.05Seconds 46.64Kbytes/sec. ftp> ls 200 PORT Command successful. 150 Opening ASCII mode data connection for /bin/ls. _请先阅读.txt _双击进入虾坛.htm 电子工程师手册_超星格式.rar 226-Maximum disk quota limited to 18000000 kBytes Used disk quota 969432 kBytes, available 17030567 kBytes 226 Transfer complete. ftp: 63 bytes received in 0.00Seconds 63000.00Kbytes/sec. ftp> // 这里从服务器获取一个文本文件 ftp> get _请先阅读.txt 200 PORT Command successful. 150 Opening ASCII mode data connection for _请先阅读.txt (597 Bytes). 226-Maximum disk quota limited to 18000000 kBytes Used disk quota 969432 kBytes, available 17030567 kBytes 226 Transfer complete. ftp: 597 bytes received in 0.00Seconds 597000.00Kbytes/sec. ftp> // 切换到返回到 Windows 2000 命令shell ftp> ! Microsoft Windows 2000 [Version 5.00.2195] (C) 版权所有 1985-2000 Microsoft Corp.
C:\>ftp -s:cmd.txt ftp.daxia.com Connected to ftp.daxia.com. 220 Serv-U FTP Server v5.0 for WinSock ready... User (ftp.daxia.com:(none)): 331 User name okay, need password.
230 User logged in, proceed. ftp> ftp> dir 200 PORT Command successful. 150 Opening ASCII mode data connection for /bin/ls. drw-rw-rw- 1 user group 0 Aug 16 01:58 . drw-rw-rw- 1 user group 0 Aug 16 01:58 .. drw-rw-rw- 1 user group 0 Jul 21 10:42 0000 请下载后自己查毒,不 要轻易运行程序文件等。 drw-rw-rw- 1 user group 0 Aug 14 15:45 00000000上传建议把目录打 包后上传,方便下载。 drw-rw-rw- 1 user group 0 Jul 29 17:04 001pic相关 drw-rw-rw- 1 user group 0 Jul 17 21:55 00目录暂时这么多,如果没 有,请自己建立 drw-rw-rw- 1 user group 0 Jul 31 17:46 1芯片相关 drw-rw-rw- 1 user group 0 Aug 9 10:56 2字模&字模 drw-rw-rw- 1 user group 0 Aug 9 11:03 430系列单片机 drw-rw-rw- 1 user group 0 Aug 14 20:01 51系列单片机 drw-rw-rw- 1 user group 0 Jul 27 13:06 AVR单片机 drw-rw-rw- 1 user group 0 Aug 9 10:54 CPLD&FPGA drw-rw-rw- 1 user group 0 Jul 29 16:31 EDA软件 drw-rw-rw- 1 user group 0 Aug 10 11:03 MatLab drw-rw-rw- 1 user group 0 Aug 6 23:27 NI虚拟仪器 drw-rw-rw- 1 user group 0 Jul 17 22:11 PC端驱动、界面程序开发 -rw-rw-rw- 1 user group 597 Jul 21 11:11 _请先阅读.txt -rw-rw-rw- 1 user group 81 Jul 21 11:43 _双击进入虾坛.htm drw-rw-rw- 1 user group 0 Aug 16 01:59 arm drw-rw-rw- 1 user group 0 Aug 14 23:09 c语言 drw-rw-rw- 1 user group 0 Jul 18 14:26 dsp drw-rw-rw- 1 user group 0 Aug 11 21:43 usb相关固件,软件 drw-rw-rw- 1 user group 0 Aug 4 21:24 编译工具(X86) drw-rw-rw- 1 user group 0 Jul 21 08:51 操作系统之(uc)Linux drw-rw-rw- 1 user group 0 Jul 19 21:52 操作系统之uCOSii drw-rw-rw- 1 user group 0 Aug 14 15:45 常用工具软件(跟电子无 关) -rw-rw-rw- 1 user group 7247748 Aug 11 16:49 电子工程师手册_超星格 式.rar drw-rw-rw- 1 user group 0 Aug 13 10:34 蓝牙资料 dr--r--r-- 1 user group 0 Jul 21 17:00 虾友通过大虾论坛上传的一 部分,3579个文件。(请不要往这里传文件) drw-rw-rw- 1 user group 0 Aug 14 20:00 相关行业标准 drw-rw-rw- 1 user group 0 Aug 15 09:27 新文件夹 drw-rw-rw- 1 user group 0 Aug 14 20:04 液晶资料 226-Maximum disk quota limited to 18000000 kBytes Used disk quota 969432 kBytes, available 17030567 kBytes 226 Transfer complete. ftp: 2332 bytes received in 0.02Seconds 116.60Kbytes/sec. ftp> ftp> cd 51系列单片机 250 Directory changed to /51系列单片机 ftp> dir 200 PORT Command successful. 150 Opening ASCII mode data connection for /bin/ls. drw-rw-rw- 1 user group 0 Aug 14 20:01 . drw-rw-rw- 1 user group 0 Aug 14 20:01 .. drw-rw-rw- 1 user group 0 Aug 9 15:49 51hex_bin drw-rw-rw- 1 user group 0 Aug 16 01:59 51工具 drw-rw-rw- 1 user group 0 Aug 4 21:09 51学习 drw-rw-rw- 1 user group 0 Aug 4 21:07 51源程序 -rw-rw-rw- 1 user group 81 Jul 21 11:43 _双击进入虾坛.htm 226-Maximum disk quota limited to 18000000 kBytes Used disk quota 969432 kBytes, available 17030567 kBytes 226 Transfer complete. ftp: 448 bytes received in 0.02Seconds 22.40Kbytes/sec. ftp> cd 51源程序 250 Directory changed to /51系列单片机/51源程序 ftp> dir 200 PORT Command successful. 150 Opening ASCII mode data connection for /bin/ls. drw-rw-rw- 1 user group 0 Aug 4 21:07 . drw-rw-rw- 1 user group 0 Aug 4 21:07 .. drw-rw-rw- 1 user group 0 Jul 15 21:42 C51_ASM函数相互调用 drw-rw-rw- 1 user group 0 Jul 18 00:26 Keil公司提供的C51例程(部 分源码) drw-rw-rw- 1 user group 0 Aug 5 22:55 MCS-51单片机实用子程序库 (汇编源码) drw-rw-rw- 1 user group 0 Jul 26 23:35 定时器中断例程 drw-rw-rw- 1 user group 0 Jul 18 23:05 外部中断例程 226-Maximum disk quota limited to 18000000 kBytes Used disk quota 969432 kBytes, available 17030567 kBytes 226 Transfer complete. ftp: 512 bytes received in 0.02Seconds 25.60Kbytes/sec. ftp> cd 定时器中断例程 250 Directory changed to /51系列单片机/51源程序/定时器中断例程 ftp> ls 200 PORT Command successful. 150 Opening ASCII mode data connection for /bin/ls. T0_ASM.rar T0_C51.rar readme.txt 定时器使用演示(新).rar 226-Maximum disk quota limited to 18000000 kBytes Used disk quota 969432 kBytes, available 17030567 kBytes 226 Transfer complete. ftp: 62 bytes received in 0.00Seconds 62000.00Kbytes/sec. ftp> ftp> bye 221 Goodbye!