List of FTP commands: Difference between revisions

Content deleted Content added
 
(36 intermediate revisions by 26 users not shown)
Line 1:
{{Short description|none}}
Below is a '''list of [[File Transfer Protocol|FTP]] commands''' that may be sent to an FTP [[Server (computing)|server]], including all commands that are standardized in RFC 959 by the [[IETF]]. All commands below are RFC 959 based unless stated otherwise. Note that most command-line FTP clients present their own set of commands to users. For example, GET is the common user command to download a file instead of the raw command RETR.
{{Multiple issues|
{{No footnotes|date=August 2023}}
{{External links|date=February 2024}}
}}
Below is a '''list of FTP commands''' that may be sent to a [[File Transfer Protocol]] (FTP) [[Server (computing)|server]]. It includes all commands that are standardized by the [[Internet Engineering Task Force]] (IETF) in [[Request for Comments|RFC]] 959, plus extensions. Note that most [[command-line]] FTP [[Client (computing)|clients]] present their own non-standard set of commands to users. For example, <code>GET</code> is the common user command to download a file instead of the raw command <code>RETR</code>.
 
{|class="wikitable sortable" style="width: 100%"
Line 8 ⟶ 13:
|-
| ABOR
| RFC 959
|
| Abort an active file transfer.
|-
| ACCT
| RFC 959
|
| Account information.
|-
Line 20 ⟶ 25:
|-
| ALLO
| RFC 959
|
| Allocate sufficient disk space to receive a file.
|-
| APPE
| RFC 959
|
| Append. (with create)
|-
| AUTH
| RFC 2228
| Authentication/Security Mechanism
|-
| AVBL
| [https://datatracker.ietf.org/doc/draft-peterson-streamlined-ftp-command-extensions/ Streamlined FTP Command Extensions]
| Get the available space
|-
| CCC
| RFC 2228
| Clear Command Channel.
|-
| CDUP
| RFC 959
|
| Change to Parent Directory.
|-
Line 42 ⟶ 51:
| RFC 2228
| Confidentiality Protection Command
|-
| CSID
| [https://datatracker.ietf.org/doc/draft-peterson-streamlined-ftp-command-extensions/ Streamlined FTP Command Extensions]
| Client / Server Identification
|-
| CWD
|RFC 697
|
| Change working directory.
|-
| DELE
| RFC 959
|
| Delete file.
|-
| DSIZ
| [https://datatracker.ietf.org/doc/draft-peterson-streamlined-ftp-command-extensions/ Streamlined FTP Command Extensions]
| Get the directory size
|-
| ENC
Line 68 ⟶ 85:
|-
| HELP
| RFC 959
|
| Returns usage documentation on a command if specified, else a general help document is returned.
|-
|HOST
| RFC 7151
|Identify desired virtual host on server, by name.
|-
| LANG
Line 76 ⟶ 97:
|-
| LIST
| RFC 959
|
| Returns information of a file or directory if specified, else information of the current working directory is returned.
|-
| LPRT
| RFC 1639
| Specifies a long address and port to which the server should connect.
|-
| LPSV
| RFC 1639
| Enter long passive mode.
|-
| MDTM
| RFC 3659
| Return the last-modified time of a specified file.
|-
| MFCT
| [https://datatracker.ietf.org/doc/draft-somers-ftp-mfxx/ The 'MFMT', 'MFCT', and 'MFF' Command Extensions for FTP]
| Modify the creation time of a file.
|-
| MFF
| [https://datatracker.ietf.org/doc/draft-somers-ftp-mfxx/ The 'MFMT', 'MFCT', and 'MFF' Command Extensions for FTP]
| Modify fact (the last modification time, creation time, UNIX group/owner/mode of a file).
|-
| MFMT
| [https://datatracker.ietf.org/doc/draft-somers-ftp-mfxx/ The 'MFMT', 'MFCT', and 'MFF' Command Extensions for FTP]
| Modify the last modification time of a file.
|-
| MIC
Line 96 ⟶ 129:
|-
| MKD
| RFC 959
|
| Make directory.
|-
| MLSD
| RFC 3659
| Lists the contents of a directory ifin a directorystandardized ismachine-readable namedformat.
|-
| MLST
| RFC 3659
| Provides data about exactly the object named on its command line andin noa othersstandardized machine-readable format.
|-
| MODE
| RFC 959
|
| Sets the transfer mode (Stream, Block, or Compressed).
|-
| NLST
| RFC 959
|
| Returns a list of file names in a specified directory.
|-
| NOOP
| RFC 959
|
| No operation (dummy packet; used mostly ason [[keepalive]]skeepalives).
|-
| OPTS
| [[rfc:2389#section-4|RFC 2389]]
| Select options for a feature (for example <code>[https://datatracker.ietf.org/doc/draft-ietf-ftpext-utf-8-option/ OPTS UTF8 ON]</code>).
|-
| OPTS_UTF8 or OPTS <SP> UTF-8
| RFC 2026 (Draft 2002)
| UTF-8 Option for FTP
|-
| PASS
| RFC 959
|
| Authentication password.
|-
| PASV
| RFC 959
|
| Enter passive mode.
|-
Line 139 ⟶ 168:
| Protection Buffer Size
|-
| {{vanchor|PORT}}
| RFC 959
|
| Specifies an address and port to which the server should connect.
|-
| PROT
| RFC 2228
| Data Channel Protection Level.
|-
| PWD
| RFC 959
|
| Print working directory. Returns the current directory of the host.
|-
| QUIT
| RFC 959
|
| Disconnect.
|-
| REIN
| RFC 959
|
| Re-initialize initializes the connection.
|-
| REST
| RFC 3659
|
| Restart transfer from the specified point.
|-
| RETR
| RFC 959
|
| Retrieve a copy of the file.
|-
| RMD
| RFC 959
|
| Remove a directory.
|-
| RMDA
| [https://datatracker.ietf.org/doc/draft-peterson-streamlined-ftp-command-extensions/ Streamlined FTP Command Extensions]
| Remove a directory tree
|-
| RNFR
| RFC 959
|
| Rename from.
|-
| RNTO
| RFC 959
|
| Rename to.
|-
| SITE
| RFC 959
|
| Sends site specific commands to remote server (like <code>SITE IDLE 60</code> or <code>SITE UMASK 002</code>). Inspect <code>SITE HELP</code> output for complete list of supported commands.
|-
| SIZE
Line 188 ⟶ 221:
|-
| SMNT
| RFC 959
|
| Mount file structure.
|-
| SPSV
| [https://datatracker.ietf.org/doc/draft-rosenau-ftp-single-port/ FTP Extension Allowing IP Forwarding (NATs)]
| Use single port passive mode (only one TCP port number for both control connections and passive-mode data connections)
|-
| STAT
| RFC 959
|
| Returns information on the currentserver status., including the status of the current connection
|-
| STOR
| RFC 959
|
| Accept the data and to store the data as a file at the server site.
|-
| STOU
| RFC 959
|
| Store file uniquely.
|-
| STRU
| RFC 959
|
| Set file transfer structure.
|-
| SYST
| RFC 959
|
| Return system type.
|-
| THMB
| [https://datatracker.ietf.org/doc/draft-peterson-streamlined-ftp-command-extensions/ Streamlined FTP Command Extensions]
| Get a thumbnail of a remote image file
|-
| TYPE
| RFC 959
|
| Sets the transfer mode ([[ASCII]]/[[binaryBinary file|binaryBinary]]).
|-
| USER
| RFC 959
|
| Authentication username.
|-
| XCUP
| <span style="display:none">&1000775</span> RFC 775
| Change to the parent of the current working directory.
|-
| XMKD
| <span style="display:none">&1000775</span> RFC 775
| Make a directory.
|-
| XPWD
| <span style="display:none">&1000775</span> RFC 775
| Print the current working directory.
|-
| XRCP
| <span style="display:none">&1000743</span> RFC 743
| RFC 959
|
|-
| XRMD
| <span style="display:none">&1000775</span> RFC 775
| Remove the directory.
|-
| XRSQ
| <span style="display:none">&1000743</span> RFC 743
| RFC 959
|
|-
| XSEM
| <span style="display:none">&1000737</span> RFC 737
| Send, mail if cannot.
|-
| XSEN
| <span style="display:none">&1000737</span> RFC 737
| Send to terminal.
|}
 
Line 256 ⟶ 297:
 
==External links==
* RFC{{IETF RFC|697|link=no}} - CWD Command of FTP
* RFC{{IETF RFC|959|link=no}} - File Transfer Protocol (FTP)
* RFC{{IETF RFC|1639|link=no}} - FTP Operation Over Big Address Records (FOOBAR)
* {{IETF RFC|2228|link=no}} - FTP Security Extensions
* RFC 2026 – UTF-8 Option for FTP (Draft 2002) [http://tools.ietf.org/html/draft-ietf-ftpext-utf-8-option-00#page-5] – draft-ietf-ftpext-utf-8-option-00.txt
* {{IETF RFC|2389|link=no}} - Feature negotiation mechanism for the File Transfer Protocol
* RFC 2228 – FTP Security Extensions
* {{IETF RFC|2428|link=no}} - FTP Extensions for IPv6 and NATs
* RFC 2389 – Feature negotiation mechanism for the File Transfer Protocol
* {{IETF RFC|2640|link=no}} - Internationalization of the File Transfer Protocol
* RFC 2428 – FTP Extensions for IPv6 and NATs
* {{IETF RFC|3659|link=no}} - Extensions to FTP
* RFC 2640 – Internationalization of the File Transfer Protocol
* {{IETF RFC|5797|link=no}} - FTP Command and Extension Registry
* RFC 3659 – Extensions to FTP
* {{IETF RFC|7151|link=no}} - File 5797Transfer Protocol FTPHOST Command andfor ExtensionVirtual RegistryHosts
* [https://datatracker.ietf.org/doc/draft-somers-ftp-mfxx/ The 'MFMT', 'MFCT', and 'MFF' Command Extensions for FTP]
* [http://www.iana.org/assignments/ftp-commands-extensions/ftp-commands-extensions.xhtml IANA FTP Commands and Extensions registry] – The official registry of FTP Commands and Extensions
* [https://datatracker.ietf.org/doc/draft-peterson-streamlined-ftp-command-extensions/ Streamlined FTP Command Extensions] ('CSID', 'AVBL', 'DSIZ', 'RMDA', and 'THMB' commands)
* [https://datatracker.ietf.org/doc/draft-rosenau-ftp-single-port/ FTP Extension Allowing IP Forwarding (NATs)]
* [https://datatracker.ietf.org/doc/draft-ietf-ftpext-utf-8-option/ UTF-8 Option for FTP]
* [https://www.iana.org/assignments/ftp-commands-extensions/ftp-commands-extensions.xhtml IANA FTP Commands and Extensions registry] - The official registry of FTP Commands and Extensions
* [http://www.nsftools.com/tips/RawFTP.htm Raw FTP command list]
 
{{DEFAULTSORT:FTP commands}}
[[Category:File Transfer Protocol]]
[[Category:Internet-related lists|FTP commands]]
 
[[es:File Transfer Protocol#Comandos FTP]]
 
{{Compu-network-stub}}