FTP, which is short for File Transfer Protocol is a standard protocol for transferring files between two computers over a network connection. It is implemented for a wide range of computer types, and it is very useful to know some aspects of FTP. FTP is a command-driven protocol, but there are a number of programs which provide a menu-driven interface to FTP. One such Windows implementation is available on the classroom computers.
It is nevertheless useful to know a few of the commands used in FTP, in case you should need to transfer files between two computers running UNIX, for example.
A sample ftp session is shown below:
sysa% mkdir cprog sysa% cd cprog sysa% ftp goss.eng.abdn.ac.uk Connected to goss.eng.abdn.ac.uk. 220 goss.eng.abdn.ac.uk FTP server (Version 1.7.212.2 Tue Apr 21 12:14:46 GMT 19 98) ready. Name (goss.eng.abdn.ac.uk:eng529): eng529 331 Password required for eng529. Password: 230 User eng529 logged in. ftp> cd cprog 250 CWD command successful. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /usr/bin/ls. total 132 -rwx--x--x 1 eng529 eng 24628 Nov 10 15:12 a.out -rw------- 1 eng529 eng 125 Nov 10 15:12 first.c -rw------- 1 eng529 eng 127 Nov 10 15:12 program1.c -rwx--x--x 1 eng529 eng 37012 Nov 10 15:12 roots -rw------- 1 eng529 eng 1828 Nov 10 15:12 roots.c 226 Transfer complete. 345 bytes received in 0.054 seconds (6.25 Kbytes/s) ftp> get roots.c 200 PORT command successful. 150 Opening ASCII mode data connection for roots.c (1828 bytes). 226 Transfer complete. local: roots.c remote: roots.c 1887 bytes received in 0.0083 seconds (221.22 Kbytes/s) ftp> mget *.c mget first.c? y 200 PORT command successful. 150 Opening ASCII mode data connection for first.c (125 bytes). 226 Transfer complete. local: first.c remote: first.c 135 bytes received in 0.02 seconds (6.60 Kbytes/s) mget program1.c? y 200 PORT command successful. 150 Opening ASCII mode data connection for program1.c (127 bytes). 226 Transfer complete. local: program1.c remote: program1.c 136 bytes received in 0.031 seconds (4.29 Kbytes/s) mget roots.c? n ftp> bye 221 Goodbye. sysa% ls -l total 8 -rw------- 1 eng529 eng 125 Nov 10 15:16 first.c -rw------- 1 eng529 eng 127 Nov 10 15:16 program1.c -rw------- 1 eng529 eng 1828 Nov 10 15:15 roots.c sysa%
10.nov.2000 - Helge Nareid