Skip to main content

CDIR, KILL, NAME and DONE Commands

CDIR​

CDIR new-directory

This will change the current working directory on the remote host to the argument passed.

Replies are:

!Changed working dir to <new-directory>
-Can't connect to directory because: (reason)
+directory ok, send account/password

If the server replies with '+' you should then send an ACCT or PASS command. The server will wait for ACCT or PASS commands until it returns a '-' or '!' response.

Replies to ACCT could be:

!Changed working dir to <new-directory>
+account ok, send password
-invalid account

Replies to PASS could be:

!Changed working dir to <new-directory>
+password ok, send account
-invalid password

KILL​

KILL file-spec

This will delete the file from the remote system.

Replies are:

+<file-spec> deleted
-Not deleted because (reason)

NAME​

NAME old-file-spec

Renames the old-file-spec to be new-file-spec on the remote system.

Replies:

+File exists
-Can't find <old-file-spec>

NAME command is aborted, don't send TOBE.

If you receive a '+' you then send:

TOBE new-file-spec

The server replies with:

+<old-file-spec> renamed to <new-file-spec>
-File wasn't renamed because (reason)

DONE​

DONE

Tells the remote system you are done.

The remote system replies:

+(the message may be charge/accounting info)

and then both systems close the connection.