Next / Previous / Index / TCC Help System / Publications / Site map / NM Tech homepage

Using ftp to move files between accounts

Tech Computer Center logo

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:

  1. Type this command:
          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):
        
  2. Type your account name on the remote system. You should see a response similar to this:
          331 Password required for your-name.
          Password:
        
  3. Type your password on the remote system. (For security reasons, it will not be echoed on the screen.) You should then see this prompt:
          ftp>
        
  4. Type 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.

  5. You can type an ls command to see what files are in the remote system's current directory.

  6. To copy a file from a remote system to the local system, enter this command:
          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
        
  7. To copy a file from the local system to the remote system:
          ftp> put local-name
        
    If you want the file to have a different name on the remote system:
          ftp> put local-name remote-name
        
  8. When you are done, type the quit command. This exits the ftp program.

See also: Transferring files with ftp
Previous: Retrieving public files with anonymous ftp
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Computer Center: Help System
TCC Publications
Home: About New Mexico Tech

John Shipman, john@nmt.edu

Last updated: 1995/12/19 01:17:03 UT
URL: http://www.nmt.edu/tcc/help/net/reg_ftp.html