You can use the Internet File Transfer Protocol, or FTP, to transfer text files, graphics files, and programs between computer accounts on various host computers. You can also use anonymous FTP to transfer files to your Rensselaer Computing System (RCS) account from public accounts on many remote hosts that allow you to log on without having an account at that site.
You can initiate FTP in two ways: either by running the utility from your PC's Start menu, or entering the ftp command from an MS-DOS prompt.
However, if you connect to the site successfully, the host will prompt you for a password. If you have an account on that host, such as on RCS, enter your account password. If you're using anonymous FTP, enter your entire electronic mail address -- for example, smithj@rpi.edu -- as your password. Once you are connected, you should see an ftp > prompt, although the exact prompt may vary from one server to another. You can now use the cd (change directory) command to reach the directory that contains the file you want. You can also use the ls or dir commands to view the files in the current directory.
Once you've located the file you want, determine whether it's a text file, which contains plain ASCII text, or a binary file, which can contain things like graphics or compiled programs.
The FTP transfer mechanism is set for text by default. If you wish to
transfer a binary file, be sure to enter the command binary before
transferring the file.
If you started FTP by running it from your PC's Start menu, you
would enter the following command at the ftp > prompt,
replacing filename with the name of the file you wish to retrieve, and
foldername and newfilename, respectively, with the name of the
folder and file under which you wish to place the file:
get filename c:foldername
newfilename
If you started FTP by issuing the ftp command from an MS-DOS prompt, and
have already relocated to the folder in which you wish to receive the file,
enter the following command at the ftp > prompt, replacing
filename with the name of the file you wish to retrieve. Use
the newfilename option if you wish to receive the file under a
different name.
get filename newfilename
If you started FTP by running it from your PC's Start menu, you
would enter the following command at the ftp > prompt,
replacing foldername and filename, respectively, with the name
of the folder and file you wish to transfer. Use the newfilename
option if you wish to receive the transferred file under a different name.
put c:foldername
filename newfilename
If you started FTP by issuing the ftp command from an MS-DOS
prompt, and have already relocated to the PC folder from which you wish
to send the file, enter the following command at the ftp > prompt,
replacing filename with the name of the file you wish to transfer.
Again, use the newfilename
option if you wish to receive the transferred file under a different name.
put filename newfilename
If you ever need on-line help at any time during your FTP session, you may either enter a question mark (?) or the help command at the ftp > prompt. You may also refer to Memo RPI.117, Transferring Files: Using FTP in UNIX, for more information.