Commands to type | What the commands do |
---|---|
ftp | Start FTP from the command line |
ftp servername | Start FTP from the command line and connect to a server e.g. ftp.tripod.com |
username password |
Enter your username and password for this server. For some sites, you can enter anonymous as your username and your e-mail address as your password. |
help | See a list of commands |
help command | Get help on a specific command |
open servername | Connect to a FTP server |
ls or dir | list the contents of the current directory |
cd foldername | change to another directory on the server (the remote computer) |
lcd foldername | change to another directory on your computer (the local computer) |
binary or ascii | change the file transfer mode (binary is used before transferring a binary file like a .zip file or image) |
put filename | upload a file from your computer to the server |
get filename | download a file from the server to your computer |
mput * or mget * | upload or download all files in the current directory (other wildcards like *.html can also be used) |
close | close the connection |
bye | exit FTP and return to the shell prompt (also closes the connection) |