FTP命令(带*号为比较少用的)
1. ABOR 放弃传输
2. *ACCT 某些系统将帐号和用户与文件系统相关联
3. *ALLO 为即将传送的文件分配空间。后面携带的参数来确定字节数
4. *APPE 将文件附加到已经存在的文件后面
5. CDUP 在远程系统上将当前目录切换到上级父目录
6. CWD 改变远程系统的工作目录
7. DELE 删除远程系统的文件
8. HELP 读取服务器的帮助信息,如:支持的命令的列表
9. LIST 在一个新建立的数据连接上发送当前工作目录下的文件名列表
10. MKD 创建目录
11. MODE 指定传输模式,可携带的参数是:S、B或 C.
12. NLST 在一个新建立的数据连接上发送一个当前目录下的“完全”的目录列表
13. NOOP 空操作,防止连接断掉
14. PASS 提供一个用户登录密码,必须立即跟随在USER命令后
15. *PASV 指定服务器数据传输过程监听等待客户端的数据连接连接建立请求
16. PORT 指定客户端监听等待服务器端建立的连接的端口号
17. PWD 显示服务器端的当前工作目录名
18. QUIT 退出登录并终止连接
19. *REIN 重新初始化,退出登录但是并不断开连接,后面必须随后发出一个新的USER命令
20. *REST 从服务器的一个标识处重新开始传输
21. RETR 从远程系统取回一个文件
22. RMD 删除一个目录
23. *RNFR 指定要被命名的文件的老的路径名,随后必须是一个RNTO命令
24. *RNTO 指定要被命名的文件的新的路径名
25. *SITE 站点特有的服务器提供的服务
26. *SMNT 结构加载,提供一个文件系统结构的远程系统路径名
27. *STAT 状态信息
28. STOR 上载一个文件到服务器上,若文件已经存在则覆盖
29. *STOU 上载一个文件到服务器上,不覆盖已经存在的文件
30. STRU 指定文件结构,参数可以是F、R或P.
31. *SYST 报告远程系统的操作系统类型
32. TYPE 指定文件类型,参数可以是A、E、I、L只有TYPE A和TYPE I常用
FTP错误列表
110 Restart marker reply. In this case, the text is exact and not left to the particular implementation; it must read: MARK yyyy = mmmm where yyyy is
User-process data stream marker, and mmmm server's equivalent marker (note the spaces between markers and "=").
重新启动标志回应。这种情况下,信息是精确的并且不用特别的处理;可以这样看:标记 yyyy = mmm 中 yyyy是 用户进程数据流标记,mmmm是服务器端相应的标记(注
意在标记和等号间的空格)
-----------------------------------
120 Service ready in nnn minutes.
服务在NNN时间内可用
-----------------------------------
125 Data connection already open; transfer starting.
数据连接已经打开,开始传送数据.
-----------------------------------
150 File status okay; about to open data connection.
文件状态正确,正在打开数据连接.
-----------------------------------
200 Command okay.
命令执行正常结束.
-----------------------------------
202 Command not implemented, superfluous at this site.
命令未被执行,此站点不支持此命令.
-----------------------------------
211 System status, or system help reply.
系统状态或系统帮助信息回应.
-----------------------------------
212 Directory status.
目录状态信息.
-----------------------------------
213 File status.
文件状态信息.
-----------------------------------
214 Help message.On how to use the server or the meaning of a particular non-standard command. This reply is useful only to the human user. 帮助信息
。关于如何使用本服务器或特殊的非标准命令。此回复只对人有用。
-----------------------------------
215 NAME system type. Where NAME is an official system name from the list in the Assigned Numbers document.
NAME系统类型。
-----------------------------------
220 Service ready for new user.
新连接的用户的服务已就绪
-----------------------------------
221 Service closing control connection.
控制连接关闭
-----------------------------------
225 Data connection open; no transfer in progress.
数据连接已打开,没有进行中的数据传送
-----------------------------------
226 Closing data connection. Requested file action successful (for example, file transfer or file abort).
正在关闭数据连接。请求文件动作成功结束(例如,文件传送或终止)
-----------------------------------
227 Entering Passive Mode (h1,h2,h3,h4,p1,p2).
进入被动模式
-----------------------------------
230 User logged in, proceed. Logged out if appropriate.
用户已登入。 如果不需要可以登出。
-----------------------------------
250 Requested file action okay, completed.
被请求文件操作成功完成
-----------------------------------
257 "PATHNAME" created.
路径已建立
-----------------------------------
331 User name okay, need password.
用户名存在,需要输入密码
-----------------------------------
332 Need account for login.
需要登陆的账户
-----------------------------------
350 Requested file action pending further information
对被请求文件的操作需要进一步更多的信息
-----------------------------------
421 Service not available, closing control connection.This may be a reply to any command if the service knows it must shut down.
服务不可用,控制连接关闭。这可能是对任何命令的回应,如果服务认为它必须关闭
-----------------------------------
425 Can't open data connection.
打开数据连接失败
-----------------------------------
426 Connection closed; transfer aborted.
连接关闭,传送中止。
-----------------------------------
450 Requested file action not taken.
对被请求文件的操作未被执行
-----------------------------------
451 Requested action aborted. Local error in processing.
请求的操作中止。处理中发生本地错误。
-----------------------------------
452 Requested action not taken. Insufficient storage space in system.File unavailable (e.g., file busy).
请求的操作没有被执行。 系统存储空间不足。 文件不可用
-----------------------------------
500 Syntax error, command unrecognized. This may include errors such as command line too long.
语法错误,不可识别的命令。 这可能是命令行过长。
-----------------------------------
501 Syntax error in parameters or arguments.
参数错误导致的语法错误
-----------------------------------
502 Command not implemented.
命令未被执行
-----------------------------------
503 Bad sequence of commands.
命令的次序错误。
-----------------------------------
504 Command not implemented for that parameter.
由于参数错误,命令未被执行
-----------------------------------
530 Not logged in.
没有登录
-----------------------------------
532 Need account for storing files.
存储文件需要账户信息
-----------------------------------
550 Requested action not taken. File unavailable (e.g., file not found, no access).
请求操作未被执行,文件不可用。
-----------------------------------
551 Requested action aborted. Page type unknown.
请求操作中止,页面类型未知
-----------------------------------
552 Requested file action aborted. Exceeded storage allocation (for current directory or dataset).
对请求文件的操作中止。 超出存储分配
-----------------------------------
553 Requested action not taken. File name not allowed
请求操作未被执行。 文件名不允许
-----------------------------------
-----------------------------------
这种错误跟http协议类似,大致是:
2开头--成功
3开头--权限问题
4开头--文件问题
5开头--服务器问题
1. ABOR 放弃传输
2. *ACCT 某些系统将帐号和用户与文件系统相关联
3. *ALLO 为即将传送的文件分配空间。后面携带的参数来确定字节数
4. *APPE 将文件附加到已经存在的文件后面
5. CDUP 在远程系统上将当前目录切换到上级父目录
6. CWD 改变远程系统的工作目录
7. DELE 删除远程系统的文件
8. HELP 读取服务器的帮助信息,如:支持的命令的列表
9. LIST 在一个新建立的数据连接上发送当前工作目录下的文件名列表
10. MKD 创建目录
11. MODE 指定传输模式,可携带的参数是:S、B或 C.
12. NLST 在一个新建立的数据连接上发送一个当前目录下的“完全”的目录列表
13. NOOP 空操作,防止连接断掉
14. PASS 提供一个用户登录密码,必须立即跟随在USER命令后
15. *PASV 指定服务器数据传输过程监听等待客户端的数据连接连接建立请求
16. PORT 指定客户端监听等待服务器端建立的连接的端口号
17. PWD 显示服务器端的当前工作目录名
18. QUIT 退出登录并终止连接
19. *REIN 重新初始化,退出登录但是并不断开连接,后面必须随后发出一个新的USER命令
20. *REST 从服务器的一个标识处重新开始传输
21. RETR 从远程系统取回一个文件
22. RMD 删除一个目录
23. *RNFR 指定要被命名的文件的老的路径名,随后必须是一个RNTO命令
24. *RNTO 指定要被命名的文件的新的路径名
25. *SITE 站点特有的服务器提供的服务
26. *SMNT 结构加载,提供一个文件系统结构的远程系统路径名
27. *STAT 状态信息
28. STOR 上载一个文件到服务器上,若文件已经存在则覆盖
29. *STOU 上载一个文件到服务器上,不覆盖已经存在的文件
30. STRU 指定文件结构,参数可以是F、R或P.
31. *SYST 报告远程系统的操作系统类型
32. TYPE 指定文件类型,参数可以是A、E、I、L只有TYPE A和TYPE I常用
FTP错误列表
110 Restart marker reply. In this case, the text is exact and not left to the particular implementation; it must read: MARK yyyy = mmmm where yyyy is
User-process data stream marker, and mmmm server's equivalent marker (note the spaces between markers and "=").
重新启动标志回应。这种情况下,信息是精确的并且不用特别的处理;可以这样看:标记 yyyy = mmm 中 yyyy是 用户进程数据流标记,mmmm是服务器端相应的标记(注
意在标记和等号间的空格)
-----------------------------------
120 Service ready in nnn minutes.
服务在NNN时间内可用
-----------------------------------
125 Data connection already open; transfer starting.
数据连接已经打开,开始传送数据.
-----------------------------------
150 File status okay; about to open data connection.
文件状态正确,正在打开数据连接.
-----------------------------------
200 Command okay.
命令执行正常结束.
-----------------------------------
202 Command not implemented, superfluous at this site.
命令未被执行,此站点不支持此命令.
-----------------------------------
211 System status, or system help reply.
系统状态或系统帮助信息回应.
-----------------------------------
212 Directory status.
目录状态信息.
-----------------------------------
213 File status.
文件状态信息.
-----------------------------------
214 Help message.On how to use the server or the meaning of a particular non-standard command. This reply is useful only to the human user. 帮助信息
。关于如何使用本服务器或特殊的非标准命令。此回复只对人有用。
-----------------------------------
215 NAME system type. Where NAME is an official system name from the list in the Assigned Numbers document.
NAME系统类型。
-----------------------------------
220 Service ready for new user.
新连接的用户的服务已就绪
-----------------------------------
221 Service closing control connection.
控制连接关闭
-----------------------------------
225 Data connection open; no transfer in progress.
数据连接已打开,没有进行中的数据传送
-----------------------------------
226 Closing data connection. Requested file action successful (for example, file transfer or file abort).
正在关闭数据连接。请求文件动作成功结束(例如,文件传送或终止)
-----------------------------------
227 Entering Passive Mode (h1,h2,h3,h4,p1,p2).
进入被动模式
-----------------------------------
230 User logged in, proceed. Logged out if appropriate.
用户已登入。 如果不需要可以登出。
-----------------------------------
250 Requested file action okay, completed.
被请求文件操作成功完成
-----------------------------------
257 "PATHNAME" created.
路径已建立
-----------------------------------
331 User name okay, need password.
用户名存在,需要输入密码
-----------------------------------
332 Need account for login.
需要登陆的账户
-----------------------------------
350 Requested file action pending further information
对被请求文件的操作需要进一步更多的信息
-----------------------------------
421 Service not available, closing control connection.This may be a reply to any command if the service knows it must shut down.
服务不可用,控制连接关闭。这可能是对任何命令的回应,如果服务认为它必须关闭
-----------------------------------
425 Can't open data connection.
打开数据连接失败
-----------------------------------
426 Connection closed; transfer aborted.
连接关闭,传送中止。
-----------------------------------
450 Requested file action not taken.
对被请求文件的操作未被执行
-----------------------------------
451 Requested action aborted. Local error in processing.
请求的操作中止。处理中发生本地错误。
-----------------------------------
452 Requested action not taken. Insufficient storage space in system.File unavailable (e.g., file busy).
请求的操作没有被执行。 系统存储空间不足。 文件不可用
-----------------------------------
500 Syntax error, command unrecognized. This may include errors such as command line too long.
语法错误,不可识别的命令。 这可能是命令行过长。
-----------------------------------
501 Syntax error in parameters or arguments.
参数错误导致的语法错误
-----------------------------------
502 Command not implemented.
命令未被执行
-----------------------------------
503 Bad sequence of commands.
命令的次序错误。
-----------------------------------
504 Command not implemented for that parameter.
由于参数错误,命令未被执行
-----------------------------------
530 Not logged in.
没有登录
-----------------------------------
532 Need account for storing files.
存储文件需要账户信息
-----------------------------------
550 Requested action not taken. File unavailable (e.g., file not found, no access).
请求操作未被执行,文件不可用。
-----------------------------------
551 Requested action aborted. Page type unknown.
请求操作中止,页面类型未知
-----------------------------------
552 Requested file action aborted. Exceeded storage allocation (for current directory or dataset).
对请求文件的操作中止。 超出存储分配
-----------------------------------
553 Requested action not taken. File name not allowed
请求操作未被执行。 文件名不允许
-----------------------------------
-----------------------------------
这种错误跟http协议类似,大致是:
2开头--成功
3开头--权限问题
4开头--文件问题
5开头--服务器问题