FTP file transmission between ubuntu and arm development in virtual machines

Source: Internet
Author: User
Tags ftp commands ftp file ftp site

1. First, start the vsftp service under Ubuntu in the virtual machine:

Sudo/etc/init. d/vsftpd restart

The FTP service is enabled when the Development Board is started.

2. Use commands in Ubuntu

FTP 10.13.106.31

Enter the user name Root

Enter the password (blank, press enter directly)

3. You have already entered the FTP service.

Use the LCD command to set the file receiving location in Ubuntu

Ftp> LCD/home/glorin/work/Linux

4. file transmission

Run the CD command to enter the directory for file transfer on the Development Board.

Use the GET command to transfer files from the Development Board to the directory set in Ubuntu

Use put to transfer files in the directory set in Ubuntu TO THE DEVELOPMENT BOARD

5. Use bye to exit FTP

 

The most common commands are:

Ftp> help lists FTP file transfers, any command that can be used.

Ftp>! Ls lists all the files in the current directory of the local workstation.

Ftp>! PWD lists the locations of local workstations in the current working directory.

Ftp> ls lists all file names in the current directory of the remote workstation.

Ftp> dir lists all the file names in the current directory of the remote workstation (slightly the same as the Unix LS-l command ).

Ftp> dir. | more is the same as above, but every page is paused (FTP other than Unix may not be applicable ).

Ftp> pwd: list the current directory location of the remote workstation.

Ftp> Cd dir1: change the working directory of the remote workstation to the location below dir1.

Ftp> Get file1: copy the file file1 of the remote workstation to the local workstation.

Ftp> put file2: copy the file file2 from the local workstation to the remote workstation.

Ftp> mget *. C: Copy all files named C in the remote workstation to the local workstation.

Ftp> mput *. txt: Copy all files in the local workstation named TXT from the remote workstation.

Ftp> prompt switch negotiate instruction (yes/no is not required for every file when using mput/mget ).

Ftp> quit.

Ftp> bye.

 

Ls to list the current directory of the remote machine
CD changes the working directory on a remote machine
LCD changes the working directory on the local machine
Set the file transmission mode to ASCII in ASCII mode.
Set the file transfer mode to binary.
Close to terminate the current FTP session
Each time the hash data is transmitted in the data buffer, A # number is displayed.
Get (mget) transfers specified files from a remote machine to a Local Machine
Put (mput) transfers the specified file from the local machine to the remote machine
Open connection to remote FTP site
Disconnect from a remote machine and exit ftp
? Display local help information
! Go to Shell

Below is a brief introduction to common FTP commands.
◆ Start an FTP session
The open command is used to open a session with the remote host. The common format of this command is:
◆ Open host name/IP Address
If you need to connect to more than one site during an FTP session, only FTP commands without parameters are used. If you only want to connect to a computer during a session, specify the remote host name or IP address on the command line as the FTP command parameter.
◆ Terminate an FTP session
The close, disconnect, and bye commands are used to terminate a session with a remote machine. Close and disronnect commands close the connection to the remote machine, but leave the user in the FTP program of the local computer. And the bye command close the connection between the user and the remote machine, and then exit the FTP program on the user machine.
◆ Change Directory
The "cd [Directory]" command is used to change the directory on the remote machine during an ftp session. The LCD command changes the local directory so that you can specify the location for searching or storing local files.
◆ Remote directory list
The ls command lists the contents of a remote directory, just like using the ls command in an interactive shell. The common format of the ls command is:
Ls [Directory] [local file]
If a directory is specified as the parameter, ls will list the contents of the directory. If a local file name is provided, the directory list is put into the file you specified on the local machine.
◆ Obtain files from a remote system
Get and mget commands are used to obtain files from a remote machine. The common format of the get command is:
Get File Name
You can also provide a local file name, which is the name of the file to be obtained when it is created on your local machine. If you do not provide a local file name, use the original name of the remote file.
The mget command obtains multiple remote files at a time. The general format of the mget command is:
Mget File Name List
Use a list of file names separated by spaces or with wildcards to specify the file to be retrieved. For each file, you must confirm whether the file is transmitted.
◆ Send a file to a remote system
The put and mput commands are used to send files to remote machines. The general format of the Put command is:
Put file name
The mput Command sends multiple local files at a time. The general format of the mput command is:
Mput File Name List
Use a list of file names separated by spaces or with wildcards to specify the files to be sent. You are required to confirm whether to send each file.
◆ Change file transmission mode
By default, ftp transfers files in ASCII mode. You can also specify other modes. The ASCII and brinary commands are used to set the transmission mode. Transferring files in ASCII mode is very good for plain text, but to avoid damages to binary files, users can transmit files in binary mode.
◆ Check transmission status
When transferring large files, FTP may find it useful to provide feedback on Transmission Conditions. The Hash command enables FTP to print a # character on the screen after data in the data buffer is transmitted every time. This command can be used to send and receive files.
◆ Local commands in FTP
When you use ftp, the character "!" It is used to send a command to the command shell on the local machine. It is useful if a user is in an FTP session and needs shell to do something. For example, you need to create a directory to save the received files. If you enter! Mkdir new_dir, Linux creates a directory named new_dir in the user's local directory.

Here, the Linux FTP command is introduced here. It should be enough to use the FTP tool in Linux.

 

Reference: http:// OS .51cto.com/art/201003/186325.htm

Reference: http://wiki.ubuntu.org.cn/Unix%E5%91%BD%E4%BB%A4%E5%A4%A7%E5%85%A8

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.