How to use Linux FTP commands--Go

Source: Internet
Author: User
Tags ftp commands ftp connection ftp site ftp client file transfer protocol ftp hostname

Http://jingyan.baidu.com/article/066074d68b6a7ac3c21cb038.html

FTP (File Transfer Protocol, FTP) is the protocol for transferring files on two computers on TCP/IP networks, and FTP is one of the earliest protocols used on TCP/IP networks and the Internet, which belongs to the application layer of the Network protocol group. The FTP client can issue commands to the server to download files, upload files, and create or change directories on the server.

FTP Server is more common on the Internet, the function of the Linux FTP command is to use the command to control the local and remote computer transfer files, here is a detailed description of the Linux FTP command some of the frequently used commands, I believe that the use of Linux for FTP operations will be very easy.

Tools/Materials
    • Ubuntu 10.10

FTP connection
    1. Open terminal, mouse click, or enter shortcut key (ctrl+alt+t)

    2. The general format of the Linux FTP command is as follows: FTP hostname/IP, where "hostname/IP" is the host name of the remote machine to which you want to connect. On the command line, the hostname is an option, and if you specify a hostname, FTP will attempt to connect to the remote machine's FTP service;

    3. If you do not specify a hostname, FTP will give you a prompt and wait for the user to enter the command: $ ftp,ftp; At this point, enter the Open command followed by the hostname or IP address at the ftp> prompt, attempting to connect to the specified host.

    4. Whichever method is used, if the connection succeeds, you need to log on to the remote machine. If the user has an account on the remote machine, they can use the account via FTP and need to provide a password. The read and write permissions of the user account on the remote machine determine what files the user can download on the remote machine and where to put the uploaded files in

      END
FTP commandNote: Although remote login to the server, where the remote computer input FTP command when the server is worth logging in, the local machine is worth the login before the FTP machine.

You must use the CD and LCD two commands to switch to the local machine directory where you want to copy the files and the server directory to which you want to copy them, and then execute the "put file name" to copy the file to the server, as well as the get command.

    1. The most commonly used commands are:
      LS lists the current directory of the remote machine
      CD changes the working directory on the remote machine
      LCD changes working directory on local Machine
      ASCII set file transfer mode to ASCII mode
      Binary set file transfer mode to binary
      Close terminates the current FTP session
      Hash displays a # number each time the data in the data buffer is transferred
      Get (Mget) transfers the specified file from the remote machine to the local machine
      Put (mput) transfers the specified file from the local machine to the remote machine
      Open Connect Remote FTP site
      Disconnect from the remote machine and exit FTP
      ? Show local Help information
      ! Go to the shell

How to use Linux FTP commands--Go

Related Article

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.