Content deleted Content added
→External links: remove ref to internet draft. To quote the internet draft itself, "It is inappropriate to use Internet-Drafts as reference material" |
add {vanchor} for PORT command |
||
(32 intermediate revisions by 23 users not shown) | |||
Line 1:
{{Short description|none}}
{{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
|-
| 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
|-
| 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
|-
| MLST
| RFC 3659
| Provides data about exactly the object named on its command line
|-
| 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
|-
| 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>).
|-
| PASS
| RFC 959
| Authentication password.
|-
| PASV
| RFC 959
| Enter passive mode.
|-
Line 135 ⟶ 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
|-
| 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 184 ⟶ 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
|-
| 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]]/[[
|-
| 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
|}
== See also==
* [[List of FTP server return codes]]
==External links==
*
*
*
*
*
*
*
*
*
* {{IETF RFC|7151|link=no}} - File Transfer Protocol HOST Command for Virtual Hosts
* [https://datatracker.ietf.org/doc/draft-somers-ftp-mfxx/ The 'MFMT', 'MFCT', and 'MFF' Command Extensions for FTP]
* [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]]
|