List of FTP commands


Below is a list of FTP commands that may be sent to a File Transfer Protocol server. It includes all commands that are standardized by the Internet Engineering Task Force in RFC 959, plus extensions. Note that most command-line FTP clients present their own non-standard set of commands to users. For example, GET is the common user command to download a file instead of the raw command RETR.
CommandRFCDescription
ABORRFC 959Abort an active file transfer.
ACCTRFC 959Account information.
ADATRFC 2228Authentication/Security Data
ALLORFC 959Allocate sufficient disk space to receive a file.
APPERFC 959Append
AUTHRFC 2228Authentication/Security Mechanism
AVBLGet the available space
CCCRFC 2228Clear Command Channel
CDUPRFC 959Change to Parent Directory.
CONFRFC 2228Confidentiality Protection Command
CSIDClient / Server Identification
CWDRFC 697Change working directory.
DELERFC 959Delete file.
DSIZGet the directory size
ENCRFC 2228Privacy Protected Channel
EPRTRFC 2428Specifies an extended address and port to which the server should connect.
EPSVRFC 2428Enter extended passive mode.
FEATRFC 2389Get the feature list implemented by the server.
HELPRFC 959Returns usage documentation on a command if specified, else a general help document is returned.
HOSTRFC 7151Identify desired virtual host on server, by name.
LANGRFC 2640Language Negotiation
LISTRFC 959Returns information of a file or directory if specified, else information of the current working directory is returned.
LPRTRFC 1639Specifies a long address and port to which the server should connect.
LPSVRFC 1639Enter long passive mode.
MDTMRFC 3659Return the last-modified time of a specified file.
MFCTModify the creation time of a file.
MFFModify fact.
MFMTModify the last modification time of a file.
MICRFC 2228Integrity Protected Command
MKDRFC 959Make directory.
MLSDRFC 3659Lists the contents of a directory in a standardized machine-readable format.
MLSTRFC 3659Provides data about exactly the object named on its command line in a standardized machine-readable format.
MODERFC 959Sets the transfer mode.
NLSTRFC 959Returns a list of file names in a specified directory.
NOOPRFC 959No operation.
OPTSRFC 2389Select options for a feature.
PASSRFC 959Authentication password.
PASVRFC 959Enter passive mode.
PBSZRFC 2228Protection Buffer Size
RFC 959Specifies an address and port to which the server should connect.
PROTRFC 2228Data Channel Protection Level.
PWDRFC 959Print working directory. Returns the current directory of the host.
QUITRFC 959Disconnect.
REINRFC 959Re initializes the connection.
RESTRFC 3659Restart transfer from the specified point.
RETRRFC 959Retrieve a copy of the file
RMDRFC 959Remove a directory.
RMDARemove a directory tree
RNFRRFC 959Rename from.
RNTORFC 959Rename to.
SITERFC 959Sends site specific commands to remote server. Inspect SITE HELP output for complete list of supported commands.
SIZERFC 3659Return the size of a file.
SMNTRFC 959Mount file structure.
SPSVUse single port passive mode
STATRFC 959Returns information on the server status, including the status of the current connection
STORRFC 959Accept the data and to store the data as a file at the server site
STOURFC 959Store file uniquely.
STRURFC 959Set file transfer structure.
SYSTRFC 959Return system type.
THMBGet a thumbnail of a remote image file
TYPERFC 959Sets the transfer mode.
USERRFC 959Authentication username.
XCUP&1000775 RFC 775Change to the parent of the current working directory
XMKD&1000775 RFC 775Make a directory
XPWD&1000775 RFC 775Print the current working directory
XRCP&1000743 RFC 743RFC 959
XRMD&1000775 RFC 775Remove the directory
XRSQ&1000743 RFC 743RFC 959
XSEM&1000737 RFC 737Send, mail if cannot
XSEN&1000737 RFC 737Send to terminal