Using ftp to move files between accounts |
|
If you have accounts on more than one system, you can use ftp to transfer files back and forth between them. You must know the Internet address of the remote system, and also the pathname of the file on the remote system.
Follow these steps:
ftp site-name
This establishes a connect to the named site.
You should see a prompt something like this:
Connected to somewhere.edu.
220 FTP server ready.
Name (somewhere.edu:your-name):
331 Password required for your-name.
Password:
ftp>
cd followed by the path name to the file
you want (leaving off the file name):
ftp> cd path-name
This is similar to the Unix cd command, except
that it changes your current directory on the remote
system.
ls command to see what files
are in the remote system's current directory.
ftp> get file-name
You should then see messages telling how big the file was and
how long it took to transfer. Be patient if you are transferring
a huge file.If you want to give the copy a different name on the local system, use this form:
ftp> get file-name local-name
ftp> put local-name
If you want the file to have a different name on the remote
system:
ftp> put local-name remote-name
quit command. This exits the
ftp program.