Computer 101: Lesson 2
Most of the following lectures require this technique. It can be
broken down into three steps: logging in, doing something, and
logging out. Easy.
How to telnet to the server
- Click on the Start button. This is the small gray rectangle in the
lower left of your screen that says "Start" and has a Windows icon
on it (see Figure 1).
Figure 1. The Start Button.
- Click on "Run...".
- It will say "Type the name of a program". Type the following:
(substitute the correct letter for the '*').
- Click on the OK button.
- It will say:
- Type your username (see Lesson 1 if you've forgotten it).
- Press down on the "Enter" key on your keyboard (See Figure 2).
Figure 2. The Enter Key.
You need to press this key every time you type a command, otherwise
the computer will not do anything. This is how the computer knows
when you are done typing.
- The computer will say:
- Type the password you were given when your email account was
activated. This is the password that we gave you a long time
ago, unless you changed it yourself.
- Press the Enter key on your keyboard again.
- It should now say something like
"You have old mail. Last login Thu Nov 16, 1972 on tty1".
- If it says "Login incorrect", this means you typed your username
or password wrong. You must enter both your username and your password
again. Continue until you get the "Last login" message. If you make
a mistake three times, you will have to close the telnet window
and start again.
- Congratulations, you are now logged in on the server.
Of course, you don't just login to the server for fun. Here are some
basic tasks in Unix.
Of course, you need to press the 'Enter' key after typing each of these
commands, or the computer will not do anything.
- ls Lists the files in the current folder or "directory".
- mkdir abc Creates a folder or "directory" called 'abc'.
- cd abc Open or "change directory" to 'abc'.
- cd If you type 'cd' without an argument, it changes you
to your home directory
- mc Starts a popular file manager called "Midnight commander".
Using mc, you can perform many basic tasks like copying files
and becoming familiar with the way files are arranged in Unix.
- pico myfile Edits a file named "myfile".
- rm myfile Deletes the file named "myfile".
- cp myfile /tmp/ Copies the file named "myfile" to the /tmp folder.
- mv myfile /tmp/ Moves the file named "myfile" to the /tmp folder.
- mv myfile myfile2 Renames the file named "myfile" to "myfile2".
Notice that 'mv' will rename or move the file, depending on whether
the destination is a filename or a directory name.
- man command Prints the manual page for the specified command
on the screen.
- cat myfile Prints the contents of the specified file on the
- lpr myfile Prints the file named "myfile" on the default
- pine A popular email program.
- tin A popular Usenet group reading program.
Extra credit: Use the 'man' command to find out how to print
a file on the printer named "hpbw".
Okay, that was fun. Can I quit now?
- You're not done yet. Now you have to get off the server. Of course,
you could just click on the little "X" in the corner, or even turn
your computer off at this point, but it's better to exit gracefully.
Some servers send a snotty message to the server's administrator if
a remote user breaks the connection abnormally.
and press the Enter key on your keyboard.
It should say "Connection closed by remote host".
- If the telnet window doesn't go away, type "exit" and press Enter
again. The little black box on your screen should disappear.
January 19, 2003