[www.cwis.net]   [About]   [Start Page]   [Webmail]   [My Account]   [Support

Support Main Menu

Software Downloads
Internet Access Numbers
Software Settings
Popup/adware/virus tools and how-tos
Service and Network Status



 

Home > Technical Support > Personal Web Site > Uploading with Command Line FTP

Uploading Your Personal Website With Command Line FTP

If you run a Unix or Windows 95/98/2000/XP operating system, you should have a command line version FTP client. This will allow you to upload/download to your personal web space, however it is strictly command driven, there are no icons or graphics. This is generally the option advanced users who are comfortable with command line environments.

This document assumes you have already created your web pages, and have them stored in a folder/directory on your hard drive.

Useful FTP Commands to Remember
ls (lowercase LS) Shows folder/directory contents on the web server in your account.
cd directory Change current working directory on server to directory
lcd directory Change current working directory on your computer
mkdir directory Make the directory "directory" on the server.
pwd Shows the directory you are in on the web server
rmdir directory Removes the directory "directory"
rm filename Removes/deletes the file "filename" from the web server.
put filename Uploads the file filename to the web server to the current directory
get filename Downloads the file filename from the web server to the current directory on your computer.
mput * Uploads every file in the current directory on your computer to the web server
mget * Downloads every file in the current directory from the web server to your computer.


1.

Connect to the Internet if you are not already.

For Windows users, to start the ftp program:

    Click Start, select Run, type ftp in the Open: box, click OK

For Unix and Linux users, to start the ftp program:

    Start a terminal window if you are not at a shell prompt.
    type ftp and press return.

2.

At the ftp> prompt, type in open www.cwis.net and press enter.

You should get the ftp server welcome banner.

   ftp> open www.cwis.net
   Connected to viper.cwis.net.
   220-www.cwis.net server ready.
   220-
   220 
   Name (www.cwis.net:): 
3.

At the name: prompt, type in your user name in all lowercase letters, and press enter.

At the Password: prompt, type in your password and press enter. Nothing will be shown as you type it.

If you are logged in successfully, you should see something similar to:

   User (www.cwis.net:(none)): username
   331 Password required for username.
   Password:
   230 User username logged in.
   ftp>

If you are not able to log in because of a bad password:

   530 Login incorrect.
   Login failed.
You can type user username to try logging in again.

4.

Change into your website directory by typing in: cd public_html

   ftp> cd public_html
   250 CWD command successful.
   ftp>
5.

Change the working directory on your computer to the directory/folder on your computer where your web pages are stored.

Windows:

   ftp> lcd C:\WEB
   Local directory now C:\WEB
   ftp>

Unix:

   ftp> lcd ~web
   Local directory now /home/username/web
   ftp>

6.

Use the pwd command to verify what directory you are in. (Optional)

   ftp> pwd
   257 "public_html" is cwd.
   ftp> 
7.

You will need to tell the ftp server that you will be sending binary files. Type in the command bin (short for binary).

   ftp> binary
   200 Type okay.
   ftp> 
8.

Once you are in the correct directories, you can begin actually uploading or downloading files to/from your web space.

To upload using the 'put' command:

   ftp> put index.html
   200 PORT command successful.
   150 Opening BINARY mode data connection for index.html.
   226 Transfer complete.
   5628 bytes sent in 0.00 seconds (8000.00 Kbytes/sec)
   ftp>

To download using the 'get' command:

   ftp> get index.html
   200 PORT command successful.
   150 Opening BINARY mode data connection for index.html.
   226 Transfer complete.
   5628 bytes received in 0.00 seconds (8000.00 Kbytes/sec)
   ftp>

9.

Perform step 8 for each file you want to upload/download to your web space.

10.

After you are finished uploading/downloading files, type in close to disconnect from the FTP server, then exit to close the FTP client.

11.

Once you have uploaded your web pages, they are instantly available on the web.

To verify your page(s) are uploaded, try to access them using your web browser. For instance, if your page is named "holidays.html", then go to the URL: http://username.home.cwis.net/holidays.html and see if you get your page.

If you can't access your page, make sure you have uploaded it to the public_html directory. Also, filenames are case sensitive, meaning that if your file is named HOLIDAY.html you must use the same capitalization in your URLs.