Examples of sending files with the ftp program

To send a single file from your current directory on the local host to the current directory on the remote host:

   ftp> send afile

This copies the file afile from your current directory on the local host to your current directory on the remote host.

If you don't give a name for the remote-file the name of the local-file you are copying is used to name the remote-file.


To use file pathnames to define both the local-file and the remote-file:

   ftp> put REPORTS/april  reports/month4

This copies the contents of the file april in the sub-directory REPORTS, which is in your current directory on the local host to the file month4 in the sub-directory reports, which is in your login directory on the remote host.


To send multiple files to a remote host:

   ftp> mput *.xdh
   mput index.xdh?

This prompts you to confirm for each file with the extension *.xdh in the subdirectory help on your local host that it is to be copied to your current directory on the remote host.

Entering a y copies the file; an n cancels this.


[Home] [Search] [Index] This site maintained by guichard@whitman.edu