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