"Hello, World!" With a Sample Unix Session
- Use telnet software to connect to the WebCity server
(webcity.arc.losrios.cc.ca.us)
Mac: BetterTelnet PC: Telnet.exe
- login: smithp (enter your login here)
password: (enter your web
password here: 123456)
- To get oriented to your account, use the following command to get a list
of files and directories:
ls (or ls
-la)
- To change directories, use:
cd
public_html (cd, followed by the name of the directory)
- To create an HTML file, use the text processor
pico:
pico hello.html (pico, followed by
the name of the HTML file you wish to create)
- Type in the following HTML codes using pico. Note: the mouse doesn't work
in pico. Use arrow keys and the delete key
instead.
<HTML>
<HEAD>
<TITLE>Hello
Document</TITLE>
</HEAD>
<BODY>
<P>Hello,
World!</P>
</BODY>
</HTML>
- To save your file in pico, use the Control key and the X key pressed
simultaneously. Follow the directions.
- To end your session with the WebCity server, type the following at the
prompt:
exit
- I want everyone to have a ZipMail (student e-mail) account. Please visit
the ZipMail web site. Click on
the upper left link, "Request a ZipMail Account". The URL for ZipMail is:
http://zip.arc.losrios.cc.ca.us