CDIR、KILL、NAME 与 DONE 命令
CDIR
CDIR new-directory
将远端主机上的当前工作目录更改为所传递的参数。
回复为:
!Changed working dir to <new-directory>
-Can't connect to directory because: (reason)
+directory ok, send account/password
如果服务器以“+”回复,则您随后应发送 ACCT 或 PASS 命令。服务器会一直等待 ACCT 或 PASS 命令,直到返回“-”或“!”响应。
对 ACCT 的回复可能是:
!Changed working dir to <new-directory>
+account ok, send password
-invalid account
对 PASS 的回复可能是:
!Changed working dir to <new-directory>
+password ok, send account
-invalid password
KILL
KILL file-spec
从远端系统删除该文件。
回复为:
+<file-spec> deleted
-Not deleted because (reason)
NAME
NAME old-file-spec
在远端系统上将 old-file-spec 重命名为 new-file-spec。
回复:
+File exists
-Can't find <old-file-spec>
NAME 命令中止,不要发送 TOBE。
如果收到“+”,则随后发送:
TOBE new-file-spec
服务器回复:
+<old-file-spec> renamed to <new-file-spec>
-File wasn't renamed because (reason)
DONE
DONE
告知远端系统您已完成。
远端系统回复:
+(the message may be charge/accounting info)
然后两个系统都关闭连接。