FTP command and response code explanation

Source: Internet
Author: User
FTP command

 

Command  Description 
Abor Interrupt Data Connection Program
Acct <account> System privileged account
Allo <bytes> Allocate bytes to the file storage on the server
Appe <FILENAME> Add a file to a file with the same name on the server
Cdup <dir path> Change the parent directory on the server
CWD <dir path> Change the working directory on the server
Dele <FILENAME> Deletes a specified file on the server.
Help <command> Returns the specified command information.
List <Name> If the file name is used to list file information, if the file name is a directory, the file list is listed.
Mode <mode> Transmission Mode (S = stream mode, B = block mode, c = compression mode)
MKD <directory> Create a specified directory on the server
NLST <directory> List contents of a specified directory
Noop No action, except for the recognition from the server
Pass <password> System logon Password
PASV Request the server to wait for Data Connection
Port <address> IP address and two-byte port ID
PWD Display current working directory
Quit Log out from the FTP server
Rein Reinitialize the logon status connection
Rest <OFFSET> Restart file transmission at a specific offset
RETR <FILENAME> Retrieve (copy) files from the server
RMD <directory> Delete a specified directory on the server
RNFR <old path> Rename the old path
RNTO <New Path> Rename a new path
Site <Params> Special site parameters provided by the server
SMNT <pathname> Mount the specified file structure
Stat <directory> Returns information in the current program or directory.
Stor <FILENAME> Store (copy) the file to the server
STOU <FILENAME> Store the file to the server name
Stru <type> Data structure (F = file, r = record, P = page)
Syst Back to the operating system used by the server
Type <data type> Data Type (A = ASCII, E = ebcdic, I = binary)
User <username> User name for system Logon

 

FTP Response Code

 

Response Code  Description 
110 Restart flag on the new file indicator
120 Time when the server is ready (in minutes)
125 Open Data Connection and start transmission
150 Open connection
200 Successful
202 Command not executed
211 System status reply
212 Directory status reply
213 File status reply
214 Reply to help information
215 System type reply
220 Service ready
221 Exit Network
225 Open Data Connection
226 End data connection
227 Enter passive mode (IP address, Id port)
230 Log on to the Internet
250 File behavior completed
257 Path Name Creation
331 Password required
332 Account required
350 File Suspension
421 Service closed
425 Unable to open data connection
426 End connection
450 File unavailable
451 Local Error
452 Insufficient disk space
500 Invalid Command
501 Error parameter
502 Command not executed
503 Error command sequence
504 Invalid Command Parameters
530 Network not logged on
532 An account is required to store files.
550 File unavailable
551 Unknown page type
552 Storage Allocation exceeded
553 File Name Not Allowed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.