1.LFTP Login:
Lftp Ftp://user:[email protected]:p ORT
Lftp User:[email protected]:p ORT
Lftp site-p port-u User,password
Lftp Site:port-u User,password
2. Modify the bookmark file to avoid logging in with a clear text password:
~/.lftp/bookmarks
The format is as follows:
VI Bookmarks
Alias ftp://username: password @ server: 21
Lftp aliases
3. Common commands:
Ls
Displays a list of remote files (!ls displays a list of local files).
Cd
Switch the remote directory (LCD switch local directory).
Get
Download the remote file.
Mget
Download the remote file (you can use a wildcard character, which is *).
Pget
Use multiple threads to download remote files with a preset of five.
Mirror
Download/upload (mirror-r)/Synchronize the entire directory.
Put
Upload the file.
Mput
Upload multiple files (wildcard characters are supported).
Mv
Move the remote file (the remote file renamed).
Rm
Delete the remote file.
Mrm
Delete multiple remote files (wildcard characters are supported).
Mkdir
Create a remote directory.
RmDir
Delete the remote directory.
Pwd
Displays the directory where the remote is currently located (LPWD displays the local directory).
Du
Calculate the size of the remote directory
!
command to execute local shell (because Lftp does not have lls, it can be replaced by!ls)
Lcd
Switch Local Directory
Lpwd
Show Local Directory
Alias
Defining aliases
Bookmark
Set bookmarks.
Exit
Exit FTP
Linux under Lftp use: