Source and/or target can be URLs pointing to directories. If target directory ends with a slash, the source base name is appended to target directory name. With mirror lftp command you can specify source directory to local target directory. (current directory in local)Īs you see in the above picture, all remote files are mirrored to the local current directory. This command sync data from the remote machine to local. To mirror all of the above files in the current directory, enter: mirror To see a list of files, type ls command: lftp ls command result In some cases certain servers will now allow you to connect with lftp with the default settings, you can try the following to connect to these type of servers: lftp -u userna5,passWORD -e "set ftp:ssl-allow off" Lftp :~> How to login to FTP with one-line command: #Īlso, we can log in with lftp with a one-line command like below: lftp -u mahdi,passWORDgoeshere īUT, If your FTP password includes special characters such as $ or ) you’d want to leave off the password like this, then type it in manually when prompted: lftp -u mahdi
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |