You are on the nsftools.com site
This page originally appeared at http://www.dreamhaven.org/ftp-raw.html, but the last time I looked it wasn't there any more, so I posted a local copy for you here. If you were really looking for a list of commands for the Microsoft Windows command-line FTP client, please look here instead.
List of raw FTP commands(Warning: this is a technical document, not necessary for most FTPuse.)
Note that commands marked with a * are not implemented in a number ofFTP servers.
- ABOR - abort a file transfer
- CWD - change working directory
- DELE - delete a remote file
- LIST - list remote files
- MDTM - return the modification time of a file
- MKD - make a remote directory
- NLST - name list of remote directory
- PASS - send password
- PASV - enter passive mode
- PORT - open a data port
- PWD - print working directory
- QUIT - terminate the connection
- RETR - retrieve a remote file
- RMD - remove a remote directory
- RNFR - rename from
- RNTO - rename to
- SITE - site-specific commands
- SIZE - return the size of a file
- STOR - store a file on the remote host
- TYPE - set transfer type
- USER - send username
Less common commands
- ACCT* - send account information
- APPE - append to a remote file
- CDUP - CWD to the parent of the current directory
- HELP - return help on using the server
- MODE - set transfer mode
- NOOP - do nothing
- REIN* - reinitialize the connection
- STAT - return server status
- STOU - store a file uniquely
- STRU - set file transfer structure
- SYST - return system type
Aborts a file transfer currently in progress.
ACCT*Syntax: ACCT account-info
This command is used to send account information on systems that requireit. Typically sent after a PASS command.
ALLOSyntax: ALLO size [R max-record-size]
Allocates sufficient storage space to receive a file. If the maximumsize of a record also needs to be known, that is sent as a secondnumeric parameter following a space, the capital letter "R", and anotherspace.
APPESyntax: APPE remote-filename
Append data to the end of a file on the remote host. If the file doesnot already exist, it is created. This command must be preceded by aPORT or PASV command so that theserver knows where to receive data from.
Makes the parent of the current directory be the current directory.
CWDSyntax: CWD remote-directory
Makes the given directory be the current directory on the remote host.
DELESyntax: DELE remote-filename
Deletes the given file on the remote host.
HELPSyntax: HELP [command]
If a command is given, returns help on that command; otherwise,returns general help for the FTP server (usually a list of supportedcommands).
LISTSyntax: LIST [remote-filespec]
If remote-filespec refers to a file, sends information about thatfile. If remote-filespec refers to a directory, sends informationabout each file in that directory. remote-filespec defaults to thecurrent directory. This command must be preceded by aPORT or PASV command.
MDTMSyntax: MDTM remote-filename
Returns the last-modified time of the given file on the remote host inthe format "YYYYMMDDhhmmss": YYYY is thefour-digit year, MM is the month from 01 to 12,DD is the day of the month from 01 to 31, hh isthe hour from 00 to 23, mm is the minute from 00 to 59, andss is the second from 00 to 59.
MKDSyntax: MKD remote-directory
Creates the named directory on the remote host.
MODESyntax: MODE mode-character
Sets the transfer mode to one of:
- S - Stream
- B - Block
- C - Compressed
NLSTSyntax: NLST [remote-directory]
Does nothing except return a response.
PASSSyntax: PASS password
Tells the server to enter "passive mode". In passive mode, the server willwait for the client to establish a connection with it rather thanattempting to connect to a client-specified port. The server will respondwith the address of the port it is listening
on, with a message like:
227 Entering Passive Mode(a1,a2,a3,a4,p1,p2)
where a1.a2.a3.a4 is the IP address andp1*256+p2 is the port number.
Specifies the host and port to which the server should connect for the nextfile transfer. This is interpreted as IP addressa1.a2.a3.a4, port p1*256+p2.
Returns the name of the current directory on the remote host.
Terminates the command connection.
Reinitializes the command connection - cancels the currentuser/password/account information. Should be followed by aUSER command for another login.
RESTSyntax: REST position
Sets the point at which a file transfer should start; useful for resuminginterrupted transfers. For nonstructured files, this is simply a decimalnumber. This command must immediately precede a data transfer command(RETR or STOR only); i.e. it mustcome after any PORT or PASV command.
RETRSyntax: RETR remote-filename
RMDSyntax: RMD remote-directory
Deletes the named directory on the remote host.
RNFRSyntax: RNFR from-filename
Used when renaming a file. Use this command to specify the file to berenamed; follow it with an RNTO command to specify thenew name for the file.
RNTOSyntax: RNTO to-filename
Used when renaming a file. After sending an RNFRcommand to specify the file to rename, send this command to specify thenew name for the file.
SITE*Syntax: SITE site-specific-command
Executes a site-specific command.
SIZESyntax: SIZE remote-filename
Returns the size of the remote file as a decimal number.
STATSyntax: STAT [remote-filespec]
If invoked without parameters, returns general status information aboutthe FTP server process. If a parameter is given, acts like theLIST command, except that data is sent over thecontrol connection (no PORT or PASVcommand is required).
STORSyntax: STOR remote-filename
Begins transmission of a file to the remote site; the remote filenamewill be unique in the current directory. The response from the serverwill include the filename.
STRUSyntax: STRU structure-character
Sets the file structure for transfer to one of:
- F - File (no structure)
- R - Record structure
- P - Page structure
Returns a word identifying the system, the word "Type:", and the defaulttransfer type (as would be set by the TYPE command).For example: UNIX Type: L8
TYPESyntax: TYPEtype-character [second-type-character]
Sets the type of file to be transferred. type-character can be anyof:
- A - ASCII text
- E - EBCDIC text
- I - image (binary data)
- L - local format
- N - Non-print (not destined for printing). This is the default ifsecond-type-character is omitted.
- T - Telnet format control (<CR>,<FF>, etc.)
- C - ASA Carriage Control
USERSyntax: USER username
Send this command to begin the login process. username should be avalid username on the system, or "anonymous" to initiate an anonymouslogin.