在dos怎么登陆FTP服务器?

来源:百度知道 编辑:UC知道 时间:2024/06/05 18:47:56

C:\Documents and Settings\yanzi>ftp xxx.xxx.xxx.xxx
Connected to xxx.xxx.xxx.xxx.
220 ready, dude (vsFTPd 1.1.0: hi there, come here now!)
User (xxx.xxx.xxx.xxx:(none)):

之后登录就好了 ...

FTP 的命令行格式为: ftp -v -d -i -n -g [ 主机名 ] ,其中
-v 显示远程服务器的所有响应信息;
-n 限制 ftp 的自动登录,即不使用 .netrc 文件;
-d 使用调试方式;
-g 取消全局文件名。
& FTP 使用的内部命令如下 ( 中括号表示可选项 ) :

1.![cmd[args] :在本地机中执行交互 sh*ll , exit 回到 ftp 环境,如: !ls*.zip
2.$ macro-ame[args] : 执行宏定义 macro-name 。
3.account[password] : 提供登录远程系统成功后访问系统资源所需的补充口令。
4.append local-file[remote-file] :将本地文件追加到远程系统主机,若未指定远程系统文件名,则使用本地文件名。
5.ascii :使用 ascii 类型传输方式。
6.bell :每个命令执行完毕后计算机响铃一次。
7.bin :使用二进制文件传输方式。
8.bye :退出 ftp 会话过程。
9.case :在使用 mget 时,将远程主机文件名中的大写转为小写字母。
10.cd remote-dir :进入远程主机目录。
11.cdup :进入远程主机目录的父目录。
12.chmod mode file-name :将远程主机文件 file-name 的存取方式设置为 mode ,如: chmod 777 a.out 。
13.close :中断与远程服务器的 ftp 会话