UNIX COMMAND SHELL REFERENCE

Getting a Secure-Shell (SSH) Client for Windows

Using a web browser, go to http://www.rm-rstar.com/eastoro/download/ and click on the 'putty.exe' link for your operating system. This allows you to download a single file (putty.exe) which you can save onto your computer. Run PuTTY by double clicking the file.

Connecting to Your UNIX shell account

Run PuTTY; it will pop up a dialog box that allows you to enter parameters. Under "Host Name", specify "rm-rstar.com", for "Protocol", select "SSH", and in the "Saved Sessions" box, type "My Shell". Press the "Save" Button; "My Shell" will appear in the list. Double click "My Shell" in the list to connect to your shell account.

Basic UNIX commands

Command Description
w show who else is logged in and what they're doing
pwd show the current directory
ls [options] list files
  ls show files in current directory
  ls -l show files in current directory, with details
  ls DIRNAME show files directory called DIRNAME
cd [options] change directory
  cd cd to home directory (/home/USERNAME)
  ls DIRNAME cd to the directory called DIRNAME
mkdir NAME make (create new) directory called NAME
rmdir NAME remove directory called NAME
rm NAME remove a file called NAME
man [options] system manual
  man -k COMMAND search for instances of COMMAND in the manual
  man COMMAND view the man page for the specific command
joe FILENAME edit the file called FILENAME

Using the Joe Text Editor

Joe is a text editor, useful for modifying programs and scripts, including HTML files. Once Joe is running you can enter commands using a "control-sequence", which means you can press and hold the "Ctrl" key while pressing another key. In this reference, Ctrl is shown as "^".

Command Description
^K H Show or hide the help screen
^K D Save the current file
^K X Exit joe (saving if necessary)
^K C Exit joe, do not save changes
^A Move to the beginning of the current line
^E Move to the end of the current line
^K E Edit a different file

Of course, you can use the UNIX command "man joe" to read more about joe commands.

Basic HTML

HTML is a "Markup Language", which means it describes the layout and content of a web page. HTML is composed of tags, which tell a browser to do something, and data, which a browser displays according to the tags around it.

HTML tags contain attributes, which provide additional information about the tag. For example, the following is an "image" tag, with several attributes; it tells the browser to display the image "myimage.jpg":

<img src="myimage.jpg" width="320" height="200">

Many tags are actually pairs of tags - they have a "start tag" and a "closing tag". These tags surround the data that they describe. In the following example, we use the <strong> tag to show the phrase "This is Bold" in boldface, while "this is not" will be shown as regular text:

<strong>This is Bold</strong>, this is not

As you may notice, a closing tag is just like a start tag, except it begins with a "/". Also, tag attributes are only specified in the start tag.

These are some basic HTML tags, including their common attributes:

HTML Tag Description
<html></html> the start and end of HTML in a document
<head></head> the document header, which can contain a title
<title></title> the document title
<body></body> the start and end of the body of the html document
Attributes: bgcolor, text, link, vlink, alink
<p></p> the start and end of a parapgraph
Attributes: align
<font></font> the start and end of font settings
Attributes: face, size, color
<a></a> an anchor
Attributes: href (a URL)
<img> an image
Attributes: src (a URL), width, height, alt
<br> a line break

Viewing Your HTML File

Using a web browser you can navigate to http://rm-rstar.com/~username/ to see the contents of your public_html directory. If you have a file called "index.html" in that directory, it will automatically be displayed in the browser window.