List of FTP commands

From Wikipedia, the free encyclopedia

Below is an incomplete list of all FTP commands that may be sent to an FTP host.

Command Explanation
ABOR Abort an active file transfer.
ACCT Account information.
APPE Append
CDUP Change to Parent Directory.
CLNT Send FTP Client Name to server
CWD Change working directory.
DELE Delete file.
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.
MDTM Return the last-modified time of a specified file.
MKD Make directory (folder).
MODE Sets the transfer mode.
NLST Returns a list of filenames in a specified directory.
NOOP No operation (dummy packet; used mostly on keepalives).
PASS Authentication password.
PASV Enter passive mode.
PORT Specifies an address and port to which the server should connect.
PWD Print working directory. Returns the current directory of the host.
QUIT Disconnect.
REIN Re initializes the connection.
RETR Retrieve 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.
STAT Returns the current status.
STOR Store a file.
STOU Store a file uniquely.
STRU Set file transfer structure.
SYST Return system type.
TYPE Sets the transfer mode (ASCII/Binary).
USER Authentication username.
MGET Use to download file from remote