Linuxftp upload and download

Source: Internet
Author: User
Linuxftp upload and download-Linux Enterprise Application-Linux server application information. The following is a detailed description. The get and mget commands are usually used to download files.

A) get
Format: get [remote-file] [local-file]
Transfers files from the remote host to the local host.
To obtain c: \ a \ 1.jpgon the server
Ftp> get/a/1.jpg 1.jpg (Press ENTER)

B) mget
Format: mget [remote-files]
Receives a batch of files from the remote host to the local host.
To obtain all files under E: \ a \ on the server
Ftp> cd/
Ftp> mget *. * (Press ENTER)

Enter the prompt command in ftp. If you obtain the command in batches, the following error is not displayed.

Note: All files are downloaded to the current directory of the linux host. For example, if you run the ftp command in/root/web, all files are downloaded to/root/web.

3. upload files

A) put
Format: put local-file [remote-file]
Transfers a local file to the remote host.
To transfer the 1.jpg file to the remote host c: \ A and rename it to 2.gif
Ftp> put 1.jpg/a/2.gif (Press ENTER)

B) mput
Format: mput local-files
Transfers a batch of files from the local host to the remote host.
To upload all bmp files in the current local directory to the server c: \
Ftp> cd/a (Press ENTER)
Ftp> mput *. jpg (Press ENTER)
Note: All uploaded files are from the current directory of the host. For example, the ftp command running in/root/web is uploaded to the server c: \ a only in the file linux under/root/web.

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.