Examples of getting files with the ftp program

1. To get a single file from a remote host:

   ftp> get news

This transfers a copy of the file news from the current directory on the remote host to your current directory on the local host.

If you don't give a local filename the filename of the remote file you are copyin is used to name the local file.

2. To get a file from a subdirectory on the remote host:

   ftp> get reports/quarterly/march tmp/month3

This transfers a copy of the file march in the remote subdirectory reports/quarterly to the local filename month3 in the subdirectory tmp.

3. To get several files from a remote host:

   ftp> mget *.ps

This transfers a copy of each file with the fileneme extension .ps in the current directory on the remote host to the current directory on the local host.

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


Top document