Great little FTP client, but a steeper learning curve from normal GUI based ones. Here are a few commands/references I occasionally use. I’ll try to keep this post up to date as I go.

Connect to server:

(If wanting to connect via SFTP, add it at the start like below)

open sftp://host
user USER

It should then ask for a password. You can then ls and you should see the files.

Download a directory:

(A mirror command downloads multiple files at once and uses segmentation:)

queue mirror -P 5 --use-pget-n=5 Directory

One file

pget -n 5 File.dmg


To delete a transfer from your queue, add the -d switch:

queue -d #

To stop and delete a running transfer, use the kill command.

If you set lftp to allow multiple transfers simultaneously, kill #, where # is the number listed by jobs.

kill all will stop and delete all transfers.


If you want your password to be saved when you create a bookmark, use the command:

set bmk:save-passwords true

Sample aliases

Edit MAC OS X at: /usr/local/etc/lftp.conf

set bmk:save-passwords true 
alias dir !ls -Fsh --group-directories-first

And a list of aliases:

alias j jobs
alias jv jobs -v
alias q queue
alias qs queue stop
alias k kill
alias ka kill all
alias m mirror -c -P 2 --use-pget-n=5
alias p pget -c -n 6

Adding bookmarks

To do this, use the “bookmark” command.

Then these:

add <name> [<loc>] 
del <name> 

Full example of the process

  1. Navigate in Terminal to the folder you want, then connect to FTP server from that terminal window
  2. After it connects, it should say cd ok
  3. List all files with ls
  4. To download a file from the FTP, type: q p FILENAME
  5. NOTE: You don’t have to type the whole file name. Just the start, then you can fill the rest by pushing the tab key.

It’s an easy way to use the FTP server to upload and download files.