lftp is awesome

I’ve been looking for a command line ftp utility that does tab completion and supports sftp. lftp is it! It comes pre-installed on Ubuntu 9.04 Jaunty.

change directory: cd

change local directory: lcd

list directory contents: ls

list local directory contents: !ls

print local working directory: lpwd

Put a file: put filename

Put multiple files: mput filename1 filename2

Get a file: get filename

Get multiple files: mget filename1 filename2

To login to a host with sftp:

lftp -u username sftp://username.server.com

To get a folder including all subfolders:

mirror filename

To put a whole folder and all its contents, without mirroring file permissions:

mirror -R -p filename

This entry was posted in Linux, Solutions, Ubuntu. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>