Linux under LFTP connection ftp server upload download command

Source: Internet
Author: User
Tags ftp gz file

Linux under LFTP connection FTP server upload & Download

Java code

Usage: lftp ftp://username: password @ip

>

Download directory mirror dirname "Download the entire directory contains subdirectories, recommend this command"

Upload directory Mirror-r Dirnam

Download Catalog

...

Usage: lftp ftp://username: password @ip

>

Download directory mirror dirname "Download the entire directory contains subdirectories, recommend this command"

Upload directory Mirror-r Dirnam

Download Catalog

Method a > Mget-d dirname/*

Method two > Mirror dirname

Upload Directory

Method A >mput-d dirname/*

Method Two >mirror-r DirName

Download normal files

> Get FILENAME

Send multiple normal files below

> Mget *

Lftp Search File Method

Ls-r | grep. iso

Find-d 3 | grep. iso

In use, see more help

Bookmark label

Cat/more/less Display file contents (with Cat and more)

Zcat/zmore/zless Displays the contents of the file (with Zcat and Zmore, the difference being zcat and zmore can only be directly manipulated. gz file)

Bzcat/bzmore/bzless Displays the contents of the file (with Bzcat and Bzmore, the difference being bzcat and bzmore can only be directly manipulated. bz2 file)

Get/mget/pget Crawl Files

put/mput/Upload File

Mirror (-r) Download upload directory

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.