FTP command Overview

Source: Internet
Author: User
Tags ftp commands ftp connection remote ftp server file transfer protocol

There are a lot of FTP software, but we still need to implement it in some advanced applications! Favorites:

========================================================== ======================================

FTP: file transfer protocol. Let's talk about his function first, mainly to transfer files from the computer running the FTP server. Interactive use. Note that FTP commands can be used only on machines with TCP/IP protocol installed.
Command Format: ftp [-V] [-D] [-I] [-N] [-G] [-S: Filename] [-A] [-W: windowsize] [computer]

Let's talk about their meaning.
-V does not display Remote Server Response
-N: automatic login upon the first connection prohibited
-I disable interaction prompts during transmission of multiple files
-D allow debugging and display all FTP commands passed between the client and the server
-G does not allow wildcard characters in the file name, which means wildcard characters can be used in local files and pathnames.
-S: Filename specifies the text file containing the FTP command. These commands are automatically run after the FTP command is started. The added parameter cannot contain spaces.
-A uses any local port when binding a data connection
-W: windowsize ignores the default 4096 transmission buffer.
The IP address of the remote computer to connect.

I have understood the above and talked about some specific commands. I personally think that although the tools are very convenient to use now, it is still very useful to understand these commands in many places, just like the command prompt in NT
1 )?
Note: The FTP command description is displayed. You can add parameters to the command name to be interpreted. If this parameter is not added, the command list containing all commands is displayed.

2) append
Note: use the current file type settings to attach a local file to a remote computer. The approximate format is
Append local-file [Remote-file] where local-file indicates the local file to be added.
Remote-file indicates that the local-file must be appended to a remote computer file. If this is saved, the local file name is used as the remote file name.

3) ASCII
Note: by default, the file transfer type is set to ASCII.

4) bell
Note: The xiangling switch indicates whether there is an alarm after file transmission is completed. Disabled by default.

5) binary
Description: sets the file transfer type to binary.

6) Bye
Ends an FTP session with a remote computer, that is, a secure disconnection.

7) CD
Modify the working directory on the remote computer. For example, in CD data, data is the directory of the remote computer to be accessed.

8) Close
Ends the FTP session with the remote server and returns the command interpreter.

9) dir
Description: displays the list of remote files and subdirectories. For example, Dir data local-File
Data indicates the directory to view the list. If data is not specified, it indicates the current directory. Local-file is the local file to save the list. If this parameter is not specified, the local file is output on the screen.

10) debug
Note: The debug switch is used to print each command sent to a remote computer when it is turned on. There is a command before the command -->
It is disabled by default.

11) disconnnect
Note: The connection is disconnected from the remote computer, but the FTP command prompt is still maintained.

12) Get
Note: The current file transmission type is used to copy a remote file to a local computer.
For example, get remote-File Local-File
Remote-file specifies the file to be copied, and local-file specifies the file name on the local computer,
If this parameter is not specified, the remote-file name is the same.

13) glob
Description: file name configuration Switch

14) hash
Note: convert each hashed mark (#) for fast data transmission. The data size is 2048 bytes. Disabled by default,

15) Help
Note: The FTP command explanation is displayed, for example, help commmand. Command is the command you want to explain. If the command parameter is not added, the list of all commands is displayed.

16 )!
Note: I almost forgot this command! Function is to run the specified command on the local computer. For example! Command: Command is the command you want to run. If the command parameter is not added, a local command prompt is displayed. Then you can enter the exit command to return to FTP.

17) LCD
Note: Change the local directory of the Local Computer. By default, the FTP directory is enabled. don't think this is useless. Isn't it common to change the local and remote computer directories to transfer files when you use ftp?
For example, in LCD [Directory], [Directory] specifies the directory of the Local Computer to enter. If you do not add this parameter, the working directory of the Local Computer is displayed.

18) literal
Description: sends the negotiation parameter to the remote FTP server, and reports it.
For example, lireral argument [...] Where argument is the negotiation parameter that specifies to be sent to the remote server.

19) ls
Description: displays files and word directories in the remote directory.
Such as ls remote-directory local-File
Remote-directory indicates the directory of the list to be viewed. If this parameter is not specified, the current working directory is displayed. Local-file is the local file to save the list. If not specified, it is output on the screen.

20) mdelete
Delete files on a remote computer, such as mdelete remote-file...
Remote-file must be the file to be deleted. You can delete multiple files.

21) mdir
Description: displays the list of files and subdirectories in a remote directory. Multiple files can be specified.
For example, mdir remote-file... local-File
What do you mean by parameters? If you don't understand, just look at the similar commands above.

22) mget
Note: The current file transfer type is used to copy multiple remote files to the local computer.
For example, mget remote-files...
In fact, multiple remote-files can be specified, which is the remote file to be copied to the local computer.

23) mkdir
Creates a remote directory.
For example, the mkdir directory command is the same as the MD directory command in the command prompt under NT.

24) MLS
Views: displays files and directory Summary of remote directories.
For example, MLS remote-file... local-File
The remote-file parameter must be added, and '-' is the current working directory of the remote computer.

25) mput
Note: use the current file transfer type to copy local files to a remote computer.
For example, mput local-files...

26) Open
Note: connect to the specified FTP server,
For example, in the open computer port, the computer is generally the IP address of the remote computer. The port does not need to be the specified port.

27) Prompt
Note: The conversion prompt indicates that when multiple files are transferred, FTP prompts that you can select to retrieve or save files. If the prompt is disabled, the mget and mput commands transmit all files, it is enabled by default.

28) Put
Note: use the current file transfer type to copy local files to a remote computer,
For example, put local-File Remote-File
Local-file specifies the local file to be copied,
Remote-file specifies the name of the file on the remote computer to be copied. If this parameter is not specified, the file name is the same as that on the local computer.

29) pwd
Description: displays the current directory on the remote computer.

30) quit
Ends the FTP session with the remote computer and exits FTP.

31) quote
Description: sends a Protocol to the remote FTP server. Report. We look forward to the FTP single-code response. The function of this command is the same as that of literal.

32) Recv
Note: The current file transmission type is used to copy a remote file to a local computer. It serves the same purpose as the GET command.

33) remotehelp
: Displays help for remote commands. Usage and help of this command ,! You can also refer to his usage.

34) Rename
Note: Change the file name on the remote computer.
This command is the same as the Ren command at the NT command prompt, such as rename filename newfilename.

35) rmdir
Deletes a remote directory.
This command is the same as the RM at the NT command prompt, such as rmdir directory

36) Send
Note: The current file transmission type is used to copy local files to a remote computer. The send and put commands have the same functions.
For example, send local-File Remote-File

37) Status
Description: displays the current status of FTP connection and conversion.

38) trace
Note: When you run the FTP command to track conversion packets, the trace displays the reason for not sending packets.

39) Type
Description: sets or displays the file transfer type.
For example, type [type-name]
The Type-name indicates the file transfer type. The default value is ASCII. If this parameter is not added, the current transmission type is displayed.

40) User
Description: User connected to a remote computer.
For example, user-name [passwd] [account]
The user-name is not to mention the user name used to log on to the computer,
Passwd is the password of the specified user-name. If it is not specified, the FTP will prompt you to enter the password.
Account is the account used to log on to the computer. If this parameter is not specified, the FTP will prompt you to enter an account.

41) verbose
Description: converts the redundancy mode. If it is enabled, all FTP responses are displayed, and the transmission efficiency and statistics are displayed at the end of the file transfer. The default setting is enabled.

You can familiarize yourself with the commands. In fact, there are a lot of FTP software, which is very convenient, but it is impossible to say that these commands are useless, like in windows, the command prompt is retained. in particular, FTP software cannot be used in many places ,.? Where.
For example, I have seen a hacker who finds an FTP user and obtains the admin intrusion column. He will use it.

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.