Content deleted Content added
Fgnievinski (talk | contribs) Added {{No footnotes}} tag |
add {vanchor} for PORT command |
||
(4 intermediate revisions by 2 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 (unless stated otherwise). 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>.▼
}}
▲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,
{|class="wikitable sortable" style="width: 100%"
Line 10 ⟶ 13:
|-
| ABOR
| RFC 959
| Abort an active file transfer.
|-
| ACCT
| RFC 959
| Account information.
|-
Line 22 ⟶ 25:
|-
| ALLO
| RFC 959
| Allocate sufficient disk space to receive a file.
|-
| APPE
| RFC 959
| Append (with create)
|-
Line 42 ⟶ 45:
|-
| CDUP
| RFC 959
| Change to Parent Directory.
|-
Line 58 ⟶ 61:
|-
| DELE
| RFC 959
| Delete file.
|-
Line 82 ⟶ 85:
|-
| HELP
| RFC 959
| Returns usage documentation on a command if specified, else a general help document is returned.
|-
Line 94 ⟶ 97:
|-
| LIST
| RFC 959
| Returns information of a file or directory if specified, else information of the current working directory is returned.
|-
Line 126 ⟶ 129:
|-
| MKD
| RFC 959
| Make directory.
|-
Line 138 ⟶ 141:
|-
| 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 on keepalives).
|-
| 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 165 ⟶ 168:
| Protection Buffer Size
|-
| {{vanchor|PORT}}
| RFC 959
| Specifies an address and port to which the server should connect.
|-
Line 174 ⟶ 177:
|-
| PWD
| RFC 959
| Print working directory. Returns the current directory of the host.
|-
| QUIT
| RFC 959
| Disconnect.
|-
| REIN
| RFC 959
| Re initializes the connection.
|-
Line 190 ⟶ 193:
|-
| RETR
| RFC 959
| Retrieve a copy of the file
|-
| RMD
| RFC 959
| Remove a directory.
|-
Line 202 ⟶ 205:
|-
| 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.
|-
Line 218 ⟶ 221:
|-
| SMNT
| RFC 959
| Mount file structure.
|-
Line 226 ⟶ 229:
|-
| STAT
| RFC 959
| Returns information on the server 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.
|-
Line 250 ⟶ 253:
|-
| TYPE
| RFC 959
| Sets the transfer mode ([[ASCII]]/[[Binary file|Binary]]).
|-
| USER
| RFC 959
| Authentication username.
|-
Line 271 ⟶ 274:
| XRCP
| <span style="display:none">&1000743</span> RFC 743
| RFC 959
|-
| XRMD
Line 279 ⟶ 282:
| XRSQ
| <span style="display:none">&1000743</span> RFC 743
| RFC 959
|-
| XSEM
|