Home
HTML Tutorial
FTP Tutorial
Copyright



Notepad

AMA Computer Learning Center, Javi's school

Youth on Fire Shaw

FTP - The File Transfer Protocol

What is FTP FTP and Your Website
Commands in FTP

What is FTP

FTP is the File Transfer Protocol, the method of transfering files from a remote unit (computer workstation) to the server or vice-versa.

Upload - is when the files are transfered from your computer to the server (i.e. website server).
examples: attaching email, transfering your website to the webserver for publishing, etc.
Download - is when the files are transfered from the remote server to your computer.
exapamles: retrieving email attachments, downloading MP3's, retrievong websites for editing.
/\ TOP

FTP and Your Website

There are different ways of FTP. There is the user-friendly way and the advanced way. For free websites, please make sure basic/open FTP is available in there services to use FTP softwares from your computer, otherwise use the FTP provided in there website.

User-Friendly FTP
The user friendly way uses FTP GUI (Graphic User Interface) software to do the job. FTP using these softwares can be done simply by using the click-click and click-drag method. The usage of these are different from one software to another. It is advisable to read the HELP section or REAME.TXT of these varied FTP softwares. Click here for downloads these FTP softwares.
/\ TOP
Anvanced-User's FTP (Command Line Interface)
For advanced usage of FTP, here are some tips on how to FTP your files:
Open your Command Line Interface (DOS)

From your prompt (most probably c:\windows\desktop), go to the directory of where the files to be uploaded are located (maybe c:\my documents).

  1. From here type this syntax:
    ftp <remote server>
    ex: c:\My Documents\ftp ftp.geocities.com
  2. You will be connected to the server (most probably Unix, Linux).


  3. When you are prompted the username, type your username:
    username: <your username>
    ex: username: jel84_99
  4. Then after you will be prompted the password (type your password):
    password: <your password>
    ex: password: javierelpidiolaiz
  5. You will receive the confirmation if you are conntected or not. If not connected type "quit" at the prompt ftp> (i.e. ftp> quit) and press ENTER and repeat from step 1. If connected, proceed to step 5.

  6. You will have the prompt which looks like this:
    ftp>
  7. At this prompt, just like in basic DOS, go to the directory where you wish to upload yous file/s by typing:
    cd <directory>
    ex: ftp> cd index
  8. If you wish to see the content of a certain directory, type:
    ls
    ex: ftp> ls
  9. And now to upload the file, the syntax is:
    put <filename>
    ex: ftp> put index.html
  10. If ever you want to download a file from your server, syntax is:
    get <filename>
    ex: ftp> get oldindex.html
  11. Once you're finished with FTP, type the syntax:
    quit
    ex: ftp> quit
/\ TOP
Advatages of this Command Line Method:
  1. This protocol usually comes with your CLI so there is no more need for downloading FTP, making your task simpler without the hassle of downloading the FTP software.
  2. File transfers are usually faster for it is already is in command format when you type syntaxes. User friendly GUI FTP's still need to go through more processing of converting your execution into CLI.
/\ TOP

Commands for FTP:

Here's a short list of available commands in command line FTP (ftp>):

command syntax function
open open computer name Opens a connection to a remote server
close close closes connection from remote server
bye bye same function as close
put put file allows you to "put" or upload a file to remote server
get get filename allows you to "get" or download a file
ls ls gives you the "list" of files in the directory of the remote server
mget mget * Allows you to "get"/download "multiple" files. You will be prompted yes or no if the file should be downloaded.
mput mput * Allows you to "put"/upload "multiple" files. You will be prompted yes or no if the file should be uploaded..
cd cd directory Allows you to go down to a directory of your choice in the remote server
lcd lcd directory Allows you to shift from one directory to anonther within your computer
/\ TOP
© 2001 by Javier Laiz of the Corporate Web Group
Hosted by www.Geocities.ws

1