Linuxftp command and Information Code

Source: Internet
Author: User
Linuxftp command and Information Code-Linux Enterprise Application-Linux server application information. The following is a detailed description. The FTP command line format is: ftp-v-d-I-n-g [host name], where-v displays all the response information of the remote server; -n indicates that ftp automatic logon is disabled ;. n etrc file;-d: Debug;-g: cancel the global file name.
The internal commands used by ftp are as follows (brackets indicate optional ):
1 .! [Cmd [args]: Execute the interactive shell on the local machine and exit to return to the ftp environment, for example :! Ls *. zip.
2. $ macro-ame [args]: Execute macro to define macro-name.
3. account [password]: Provide the password required to access system resources after logging on to the remote system.
4. append local-file [remote-file]: append the local file to the remote system host. If the remote system file name is not specified, the local file name is used.
5. ascii: Use the ascii type transmission method.
6. bell: after each command is executed, the computer rings once.
7. bin: Binary File Transfer Mode.
8. bye: exit the ftp session.
9. case: when using mget, convert uppercase letters in the remote host file name to lowercase letters.
10. cd remote-dir: Enter the remote host directory.
11. cdup: Enter the parent directory of the remote host directory.
12. chmod mode file-name: Set the file-name access mode of the remote host file to mode, for example, chmod 777 a. out.
13. close: interrupt the ftp session with the remote server (corresponding to open ).
14. cr: When a file is transmitted using asscii, the carriage return line is converted into a return line.
15. delete remote-file: delete remote host files.
16. debug [debug-value]: sets the debugging mode to display each command order sent to the remote host, for example, deb up 3. If it is set to 0, the debug is canceled.
17. dir [remote-dir] [local-file]: displays the remote host directory and stores the result in local-file.
18. disconnection: Same as close.
19. form format: sets the file transmission mode to format. The default mode is file.
20. get remote-file [local-file]: transfers the remote-file of the remote host to the local-file of the local hard disk.
21. glob: Set the extension of the mdelete, mget, and mput file names, which is the same as the-g parameter in the command line.
22. hash: A hash symbol (#) is displayed for every 1024 bytes transferred (#).
23. help [cmd]: displays the help information of the ftp Internal Command cmd, for example, help get.
24. idle [seconds]: Set the Sleep timer of the remote server to [seconds] seconds.
25. image: sets the binary transmission mode (the same as binary ).
26. LCD [dir]: Switch the local working directory to dir.
27. ls [remote-dir] [local-file]: displays remote-dir in the remote directory and stores local-file in the local file.
28. macdef macro-name: defines a macro. When an empty row under macdef is encountered, the macro defines the end.
29. mdelete [remote-file]: delete remote host files.
30. mdir remote-files local-file: similar to dir, but multiple remote files can be specified, such as mdir *. o. *. zipoutfile.
31. mget remote-files: Transfers multiple remote files.
32. mkdir dir-name: create a directory on the remote host.
33. mls remote-file local-file: Same as nlist, but multiple file names can be specified.
34. mode [modename]: sets the file transmission mode to modename. The default format is stream.
35. modtime file-name: displays the last modification time of the remote host file.
36. mput local-file: Transfers multiple files to the remote host.
37. newer file-name: if the modification time of file-name on the remote machine is closer than that of the same name file on the local hard disk, the file is retransmitted.
38. nlist [remote-dir] [local-file]: displays the list of files in the remote host directory and stores the local-file on the local hard disk.
39. nmap [inpattern outpattern]: sets the file name ing mechanism so that some characters in the file are converted during file transmission, such as nmap .. [,]. [,], the a1.a2 file is transmitted. when a3, the file name is changed to a1, a2. This command is especially applicable when the remote host is not a UNIX host.
40. ntrans [inchars [outchars]: sets the file name character translation mechanism, for example, ntrans 1R, then the file name LLL will change to RRR.
41. open host [port]: Specifies the ftp server connection. You can specify the connection port.
42. passive: enters the passive transmission mode.
43. prompt: Set interaction prompts when multiple files are transferred.
44. proxy ftp-cmd: Execute an ftp command in the secondary control connection. This command allows two ftp servers to be connected to transfer files between the two servers. The first ftp command must be open to first establish a connection between two servers.
45. put local-file [remote-file]: transfers the local file to the remote master.
46. pwd: displays the current working directory of the remote host.
47. quit: Same as bye, quit the ftp session.
48. quote arg1, arg2. ..: Send the parameter to the remote ftp server, for example, quote syst.
49. recv remote-file [local-file]: Same as get.
50. reget remote-file [local-file]: similar to get. However, if local-file exists, it will be resumed from the last transmission interruption.
51. rhelp [cmd-name]: request for help from the remote host.
52. rstatus [file-name]: If no file name is specified, the remote host status is displayed. If no, the file status is displayed.
53. rename [from] [to]: Change the remote host file name.
54. reset: Clear the answer queue.
55. restart marker: Start get or put again from the specified mark marker, for example, restart 130.
56. rmdir dir-name: Delete the remote host directory.
57. runique: Set the unique storage of file names. If the file exists, add the suffix... 1 and. 2 after the original file.
58. send local-file [remote-file]: Same as put.
59. sendport: Set the PORT command.
60. site arg1, arg2. ..: Send the parameter to the remote ftp host as the SITE command.
61. size file-name: displays the file size of the remote host, for example, site idle 7200.
62. status: displays the current ftp status.
63. struct [struct-name]: sets the file transmission structure to struct-name, and uses the stream structure due to lack of time.
64. sunique: Set the remote host file name storage to unique (corresponding to runique ).
65. system: displays the operating system type of the remote host.
66. tenex: Set the file transfer type to the required type of the TENEX server.
67. tick: sets the byte counter during transmission.
68. trace: Set package tracing.
69. type [type-name]: sets the file transfer type to type-name. The default value is ascii, for example, type binary. Sets the binary transfer mode.
70. umask [newmask]: Set the default umask of the remote server to newmask, for example, umask 3.
71. user-name [password] [account]: indicates your identity to the remote host. If you need a password, enter the password, for example, user anonymous my @ email.
72. verbose: Same as the-v parameter of the command line, that is, set the detailed report mode. All responses of the ftp server will be displayed to the user. The default value is on.
73 .? [Cmd]: Same as help.

Full FTP Information Code Solution
-----------------------------------
110 Restart marker reply. in this case, the text is exact and not left to the particular implementation; it must read: MARK yyyy = mmmm where yyyy is User-process data stream marker, and mmmm server's equivalent marker (note the spaces between markers and "= ").
Restart flag response. In this case, the information is accurate and does not need to be specially processed. You can see that in the mark yyyy = mmm, yyyy is the user process data stream mark, mmmm is the corresponding mark on the server (note the space between the mark and equal sign)
-----------------------------------
120 Service ready in nnn minutes.
Service available in NNN time
-----------------------------------
125 Data connection already open; transfer starting.
The data connection is enabled and data transmission starts.
-----------------------------------
150 File status okay; about to open data connection.
The file status is correct. The data connection is being opened.
-----------------------------------
200 Command okay.
Command Execution ends normally.
-----------------------------------
202 Command not implemented, superfluous at this site.
The command is not executed. This site does not support this command.
-----------------------------------
211 System status, or system help reply.
System status or system help information response.
-----------------------------------
212 Directory status.
Directory status information.
-----------------------------------
213 File status.
File status information.
-----------------------------------
214 Help message. On how to use the server or the meaning of a special non-standard command. This reply is useful only to the human user. Help information. About how to use this server or special non-standard commands. This reply is only useful to people.
-----------------------------------
215 NAME system type. Where NAME is an official system name from the list in the Assigned Numbers document.
NAME system type.
-----------------------------------
220 Service ready for new user.
The service of the newly connected user is ready
-----------------------------------
221 Service closing control connection.
Close Control connection
-----------------------------------
225 Data connection open; no transfer in progress.
The data connection is enabled, and no data is being transferred.
-----------------------------------
226 Closing data connection. Requested file action successful (for example, file transfer or file abort ).
Closing data connection. The request file action ends successfully (for example, file transfer or termination)
-----------------------------------
227 Entering Passive Mode (h1, h2, h3, h4, p1, p2 ).
Enter passive mode
-----------------------------------
230 User logged in, proceed. Logged out if appropriate.
The user has logged in. You can log out without any need.
-----------------------------------
250 Requested file action okay, completed.
The requested file operation is completed successfully.
-----------------------------------
257 "PATHNAME" created.
Path created
-----------------------------------
331 User name okay, need password.
The user name already exists. Enter the password.
-----------------------------------
332 Need account for login.
Account to be logged in
-----------------------------------
350 Requested file action pending further information
More information is required for operations on the requested file.
-----------------------------------
421 Service not available, closing control connection. This may be a reply to any command if the service knows it must shut down.
The service is unavailable and the control connection is closed. This may be a response to any command, if the service thinks it must be disabled
-----------------------------------
425 Can't open data connection.
An error occurred while enabling the data connection.
-----------------------------------
426 Connection closed; transfer aborted.
The connection is closed and the transfer is aborted.
-----------------------------------
450 Requested file action not taken.
Operations on the requested file are not performed
-----------------------------------
451 Requested action aborted. Local error in procssing.
The requested operation is aborted. A local error occurs during processing.
-----------------------------------
452 Requested action not taken. Insufficient storage space in system. File unavailable (e.g., file busy ).
The requested operation is not executed. Insufficient system storage space. File unavailable
-----------------------------------
500 Syntax error, command unrecognized. This may include errors such as command line too long.
Syntax error, unrecognized command. This may be because the command line is too long.
-----------------------------------
501 Syntax error in parameters or arguments.
Syntax Error Caused by parameter error
-----------------------------------
502 Command not implemented.
Command not executed
-----------------------------------
503 Bad sequence of commands.
Command Order error.
-----------------------------------
504 Command not implemented for that parameter.
The command is not executed due to a parameter error.
-----------------------------------
530 Not logged in.
No Logon
-----------------------------------
532 Need account for storing files.
Account information is required to store files
-----------------------------------
550 Requested action not taken. File unavailable (e.g., file not found, no access ).
The request is not executed and the file is unavailable.
-----------------------------------
551 Requested action aborted. Page type unknown.
Request operation aborted. The page type is unknown.
-----------------------------------
552 Requested file action aborted. Exceeded storage allocation (for current directory or dataset ).
The operation on the requested file is aborted. Exceeded Storage Allocation
-----------------------------------
553 Requested action not taken. File name not allowed
The request is not executed. File Name Not Allowed
-----------------------------------
-----------------------------------
This error is similar to the http protocol, which is roughly:
2-success
3-permission issues
4-file Problems
Starting with 5 -- server problems

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.