Often, FTP is used to retrieve a file from a public server. You can obtain this file from the server by using the
is the name or path of the file you want to retrieve. To view all the files in the directory you have connected to, you can use the
ls command. You can also use
pwd to determine which directory you are currently in, and then
cd to change your directory.
To send a file to the server, type
, where file is the name or path of the file you wish to send. To view all the files in your local directory (not the remote FTP server), type
lcd. You can also type
lcd directory to change to a new directory on your local machine.