Linux lftp connection ftp server upload download command

  

linux 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 Directory

...

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

>

Download directory mirror DIRNAME [Download the whole The directory contains subdirectories, this command is recommended]

Upload directory mirror -R DIRNAM

Download directory

Method one> mget -d DIRNAME/*

Method 2 > mirror DIRNAME

Upload directory

Method 1 >mput -d DIRNAME/*

Method 2 >mirror -R DIRNAME

Download regular file

> get FILENAME

Underpass multiple ordinary files

> mget *

lftp search file method

ls -R |  Grep .iso

find -d 3 |  Grep .iso

In use, take a look at help help

bookmark tag

cat/more/less display file content (with cat and more)

zcat/zmore/zless Display file contents (using zcat and zmore, the difference is that zcat and zmore can only operate .gz files directly)

bzcat/bzmore/bzless Display file contents (using bzcat and bzmore, difference Bzcat and bzmore can only operate .bz2 files directly)

get/mget/pget fetch files

put/mput/upload files

mirror (-R) download Upload directory

Copyright © Windows knowledge All Rights Reserved