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: The sudo/etc/init. d/vsftpdrestart Development Board has enabled the ftp service at startup. 2. Run the ftp10.13.106.31 command in Ubuntu to enter the user name root and enter the password (blank, press enter) 3. You have entered the ftp service and used the LCD command to set the file receiving location ftp & gt; LCD/hom in Ubuntu.

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:
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.

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.