Example of Uploading Files

This section provides an example FTP session of uploading files.

Here is an example of an FTP session that uploads files from a FTP server machine:

>ftp localhost
Connected to localhost.
220 Microsoft FTP Service
User (localhost:(none)): herong
331 Password required for herong.
Password: ********
230 User herong logged in.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
  11:05PM                 5537 ftp.html
  03:43PM                 5082 index.html
  08:39PM                 1174 reference.html
226 Transfer complete.
ftp: 155 bytes received in 0.00Seconds 155000.00Kbytes/sec.
ftp> put help.html
200 PORT command successful.
150 Opening ASCII mode data connection for help.html.
226 Transfer complete.
ftp: 728 bytes sent in 0.00Seconds 728000.00Kbytes/sec.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
  11:05PM                 5537 ftp.html
  11:53PM                  728 help.html
  03:43PM                 5082 index.html
  08:39PM                 1174 reference.html
226 Transfer complete.
ftp: 205 bytes received in 0.00Seconds 205000.00Kbytes/sec.
ftp> quit
221

Note that most FTP servers do not allow you to upload files, because they are configured to support file download only. To upload a file, you must login with an FTP account that has the write permission.

Table of Contents

 About This Book

 1957 - FORTRAN Language Developed by IBM

 1970 - UNIX Operating System Developed by AT&T Bell Labs

1971 - FTP Protocol Created by Abhay Bhushan

 What Is FTP?

 Example of Downloading Files

Example of Uploading Files

 Anonymous FTP Servers

 FTP Client Program Standard Commands

 1972 - C Language Developed by Dennis Ritchie

 1976 - vi Text Editor Developed by Bill Joy

 1977 - Apple II Designed by Steve Jobs and Steve Wozniak

 1977 - The Bourne Shell Developed by Stephen Bourne

 1978 - The C Shell Developed by Bill Joy

 1978 - Bash (Bourne-Again Shell) Developed by Brian Fox

 1979 - The Tcsh (TENEX C Shell) Developed by Ken Greer

 1983 - "Sendmail" Mail Transfer Agent Developed by Eric Allman

 1984 - Macintosh Developed by Apple Inc.

 1984 - X Window System Developed a MIT Team

 1991 - WWW (World Wide Web) Developed by Tim Berners-Lee

 1991 - Gopher Protocol Created by a University of Minnesota Team

 1995 - Java Language Developed by Sun Microsystems

 1995 - PHP: Hypertext Preprocessor Created by Rasmus Lerdorf

 2002 - .NET Framework Developed by Microsoft

 References

 PDF Printing Version