Below is a list of
FTP commands that may be sent to an FTP
host, including all commands that are standardized in
RFC 959 by the IETF. All commands below are
RFC 959 based unless stated otherwise. PUT and GET are popular
user commands for terminal-based FTP clients. These user commands
are translated into STOR and RETR commands by the software for the
actual communication between the client and server. Commands used by
the FTP client software as opposed to the user are often described
as raw FTP commands.
- ABOR - Abort an active file transfer.
- ACCT - Account information.
- ALLO - Allocate sufficient disk space to receive a file.
- APPE - Append.
- CDUP - Change to Parent Directory.
- CLNT - Send FTP Client Name to server. (not
RFC 959)
- CWD - Change working directory.
- DELE - Delete file.
- EPSV - Enter extended passive mode. (not
RFC 959)
- EPRT - Specifies an extended address and port to which the
server should connect. (not
RFC 959)
- FEAT - Get the feature list implemented by the server. (not
RFC 959)
- GET - Use to download a file from remote. (not
RFC 959.
RFC 959 version is RETR)
- HELP - Returns usage documentation on a command if specified,
else a general help document is returned.
- LIST - Returns information of a file or directory if specified,
else information of the current working directory is returned.
- LPSV - Enter long passive mode. (not
RFC 959)
- LPRT - Specifies a long address and port to which the server
should connect. (not
RFC 959)
- MDTM - Return the last-modified time of a specified file. (not
RFC 959)
- MGET - Use to download multiple files from remote. (not
RFC 959)
- MKD - Make directory (folder).
- MNT - Mount File Structure. (not
RFC 959)
- MODE - Sets the transfer mode (Stream, Block, or Compressed).
- MPUT - Use to upload multiple files to remote. (not
RFC 959)
- NLST - Returns a list of filenames in a specified directory.
- NOOP - No operation (dummy packet; used mostly on keepalives).
- OPTS - Select options for a feature. (not
RFC 959)
- PASS - Authentication password.
- PASV - Enter passive mode.
- PORT - Specifies an address and port to which the server should
connect.
- PUT - Use to upload a file to remote. (not
RFC 959.
RFC 959 version is STOR)
- PWD - Print working directory. Returns the current directory of
the host.
- QUIT - Disconnect.
- REIN - Re initializes the connection.
- REST - Restart transfer from the specified point.
- RETR - Retrieve (download) a remote file.
- RMD - Remove a directory.
- RNFR - Rename from.
- RNTO - Rename to.
- SITE - Sends site specific commands to remote server.
- SIZE - Return the size of a file. (not
RFC 959)
- SMNT - Mount file structure.
- STAT - Returns the current status.
- STOR - Store (upload) a file.
- STOU - Store file uniquely.
- STRU - Set file transfer structure.
- SYST - Return system type.
- TYPE - Sets the transfer mode (ASCII/Binary).
- UMNT - Unmount file structure. (not
RFC 959)
- USER - Authentication username.
| |