Examples of getting files with the ftp program

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 copying is used to name the local file.


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.


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.


[Home] [Search] [Index]