CS 102
Feb. 15, 1999
In this lab, you'll use the command prompt and the file transfer protocol (FTP) to publish your small web page.
g:\kelliher\html
.
Carefully note the command prompt. It starts with a drive letter. This is how you know you're at the command prompt and not running another program.
g:\kelliher> s: s:\>Look back at the path to your web page folder. Change to the drive that your web folder is on.
g:\kelliher> cd web g:\kelliher\web> cd .. g:\kelliher> cd html g:\kelliher\html>Note:
cd ..and to move to the drive's root folder type
cd \Experiment a little.
Remember the names of the two files. Both form your web page.
ftp phoenixYou will be prompted to enter a user name and then a password. Enter them from the phoenix account information I gave you earlier.
If all goes well, you are logged in and have an ftp prompt:
ftp>If you receive the message login failed use the user command in ftp with your user name to start over:
ftp> user kelliherYou will be prompted for your password again. If you cannot seem to get logged in, call me over. The most common login problem is mis-typing the password, so be careful with that. Letter case matters.
ftp>Run the binary and cd commands to prepare for transferring the files:
ftp> binary ftp> cd public_htmlRun the pwd (print working directory) command to verify that you're in the correct folder on phoenix. For example:
ftp> pwd 257 "/home1/kelliher/public_html" is current directory.What's important here is that the last component of the path you see is
public_html
.
ftp> put index.htm ftp> put baltmap.jpgThen, use the dir command in ftp to list the files in the current folder on phoenix. You should see the two files you just put there, plus some others.
phoenix/~kelliher/Note the
~
character in front of the user name. The ~
character can be found to the left of the 1 key on the top row of the
keyboard.
Well, is your web page out there on the Internet?