FTP File upload Download

Source: Internet
Author: User
Tags ftp commands ftp file

Ftp
FTP [-v] [-n] [-i] [-d] [-g] [-s:filename] [-a] [-w:windowsize] [computer]


Parameters
-V Disables the display of remote server responses.
-N Disables automatic logon to the initial connection.
-I turn off interactive prompts when transferring multiple files.
-D enables debugging, displaying all FTP commands that are passed between the client and the server.
-G Disables the file name group, which allows wildcard character (* and?) to be used in local files and path names.
-S:FILENAME Specifies the text file that contains the FTP command, which will run automatically when FTP is started. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
-A uses any local interface when bundling data connections.
-w:windowsize overrides the default size of 4096 for the transfer buffer.
computer specifies the computer name or IP address to connect to the remote computer. If specified, the computer must be the last parameter of the row.


Here are some common commands:

ASCII: Set to transfer files in ASCII mode (default value)
Bell: Every time a file transfer is completed, an alarm is prompted.
Binary: Sets the file to be transferred in binary mode.
Bye: Terminates the host FTP process and exits the FTP administration mode.
Case: When on, the file name copied with the Mget command to the local machine, all converted to lowercase letters.
CD: cd command with UNIX.
Cdup: Returns to the previous level of the directory.
chmod: Changes the file permissions of the remote host.
Close: Terminates the remote FTP process, returns to the FTP command state, and all macro definitions are deleted.
Delete: Deletes files from the remote host.
dir [remote-directory] [local-file] lists the files in the current remote host directory. If there is a local file, the result is written to a local file.
get [Remote-file] [Local-file] is transferred from the remote host to the local host.
Help [command] the interpretation of the output commands.
LCD: Change the working directory of the current local host, if default, go to the current user's home directory.
LS [remote-directory] [local-file] with Dir.
Macdef: Defines a macro command.
Mdelete [Remote-files] Deletes a batch of files.
Mget [Remote-files] receives a batch of files from the remote host to the local host.
mkdir directory-name The directory in the remote host.
Mput Local-files transfers A batch of files from the local host to the remote host.
Open host [port] re-establishes a new connection.
prompt: Interactive prompt mode.
Put Local-file [remote-file] transfers a local file to the remote host.
PWD: Lists the current remote host directory.
Quit: With bye.
Recv Remote-file [Local-file] with Get.
Rename [from] [to] changes the file name in the remote host.
RmDir directory-name Delete the directory from the remote host.
Send Local-file [Remote-file] with put.
Status: Displays the state of the current FTP.
System: Displays the remote host systems type.
User user-name [password] [account] re-login to the remote host with a different user name.
? [command]: With help. [command] To specify the names of the commands that need help. If you do not specify COMMAND,FTP, a list of all commands is displayed.
! Exit from the FTP subsystem to the shell.

FTP File upload Download

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.