List of FTP commands: Difference between revisions

Content deleted Content added
m improve MLST, MLSD description
 
(11 intermediate revisions by 5 users not shown)
Line 1:
{{shortShort description|Wikipedia list articlenone}}
{{Multiple issues|
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.
{{No footnotes|date=August 2023}}
{{External links|date=February 2024}}
}}
Below is a '''list of [[File Transfer Protocol|FTP]] commands''' that may be sent to ana [[File Transfer Protocol]] (FTP) [[Server (computing)|server]],. It includingincludes all commands that are standardized in RFC 959 by the [[IETFInternet Engineering Task Force]]. All(IETF) commandsin below[[Request arefor Comments|RFC]] 959, based unless statedplus otherwiseextensions. 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 9 ⟶ 13:
|-
| ABOR
| RFC 959
|
| Abort an active file transfer.
|-
| ACCT
| RFC 959
|
| Account information.
|-
Line 21 ⟶ 25:
|-
| ALLO
| RFC 959
|
| Allocate sufficient disk space to receive a file.
|-
| APPE
| RFC 959
|
| Append (with create)
|-
Line 41 ⟶ 45:
|-
| CDUP
| RFC 959
|
| Change to Parent Directory.
|-
Line 57 ⟶ 61:
|-
| DELE
| RFC 959
|
| Delete file.
|-
Line 81 ⟶ 85:
|-
| HELP
| RFC 959
|
| Returns usage documentation on a command if specified, else a general help document is returned.
|-
Line 93 ⟶ 97:
|-
| LIST
| RFC 959
|
| Returns information of a file or directory if specified, else information of the current working directory is returned.
|-
Line 125 ⟶ 129:
|-
| MKD
| RFC 959
|
| Make directory.
|-
Line 137 ⟶ 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 164 ⟶ 168:
| Protection Buffer Size
|-
| {{vanchor|PORT}}
| RFC 959
|
| Specifies an address and port to which the server should connect.
|-
Line 173 ⟶ 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 189 ⟶ 193:
|-
| RETR
| RFC 959
|
| Retrieve a copy of the file
|-
| RMD
| RFC 959
|
| Remove a directory.
|-
Line 201 ⟶ 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 217 ⟶ 221:
|-
| SMNT
| RFC 959
|
| Mount file structure.
|-
Line 225 ⟶ 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 249 ⟶ 253:
|-
| TYPE
| RFC 959
|
| Sets the transfer mode ([[ASCII]]/[[Binary file|Binary]]).
|-
| USER
| RFC 959
|
| Authentication username.
|-
Line 270 ⟶ 274:
| XRCP
| <span style="display:none">&1000743</span> RFC 743
| RFC 959
|
|-
| XRMD
Line 278 ⟶ 282:
| XRSQ
| <span style="display:none">&1000743</span> RFC 743
| RFC 959
|
|-
| XSEM
Line 310 ⟶ 314:
* [http://www.nsftools.com/tips/RawFTP.htm Raw FTP command list]
 
{{DEFAULTSORT:FTP commands}}
[[Category:File Transfer Protocol]]
[[Category:Internet-related lists|FTP commands]]
 
{{Compu-network-stub}}
[[es:File Transfer Protocol#Comandos FTP]]