CS 100 - Computer Literacy, Fall 2004
Lab 2
For this assignment, we will combine a few different tasks.
- Search the Internet for answers to various questions.
- Place the answers in a file in your icarus account.
- Electronically submit your file using the turnin command.
Searching the Internet
According to the show of hands during lecture, most people state
they have used the internet to search for information. Many people
prefer to use Google at www.google.com
to search for information.
The key to using any search engine is determining the best keywords
to use for your search. Google's
Advanced Search at http://www.google.com/advanced_search?hl=en
is a good place to help narrow down the results from your search.
Creating a file in you Icarus account
Icarus is UIC's Unix machine. Every student has an account on
the icarus machine. Your icarus account name and password is the
same as your netid and password.
You should log onto icarus using SSH which stands for
Secure SHell. The ACCC has some web page support
for
SSH. An alternative program to SSH is
PuTTY.
The added security of these programs is a level of encryption that
the traditional
telnet program lacks.
Once you are logged into icarus, you will need to learn some basic
UNIX commands to get around and perform various tasks. Again, the ACCC
has some web page support for
using icarus.
In particular the ACCC's web page
UNIX 101 give a nice summary on various UNIX commands.
A few commands that you will want to know are:
- exit - Log off
End your connection to UNIX.
- ls - Directory Listing
List the contents of the current directory. Note:
a UNIX directory is the same as a Windows folder.
- cat <filename> - Display file
Display the contents of the file
indicated by <filename> to the screen.
- more <filename> - Display file
Display the contents of the file
indicated by <filename> to the screen one page at a time.
- cp <filename1> <filename2> - Copy file
Creates a duplicate of the file in <filename1> with
the name <filename2>.
- mv <filename1> <filename2> - Rename a file
Renames the file in <filename1> with
the name <filename2>.
- rm <filename> - Remove a file
Deletes the file in <filename> from the current directory.
Note: once a file is deleted is cannot be restored. So use this command
with caution!
- pico <filename> - Edit a file
Allows the contents of file in <filename> to be changed.
The editor pico is the counter part to the email reader
pine. The
ACCC's web page combine these two programs together under the name of
pine.
- lpr -P <printerName> <filename> - Print a file
Sends the file in <filename> to be printed at the
printer with name <printerName>. This command also
has a
ACCC web page describing its use. Note: The lpr command
will assume the file is stored using the ASCII character format
(i.e. plain text). So don't try to print files that are not
plain text.
We will discuss other UNIX commands at a future time.
Using turnin
The UNIX command turnin will allow you to submit a file
electronically to a different account. To submit the file, you
also need to specify a course name and a project name. The
course name we will use is troy. For this lab, we will
use the project name of lab2. To submit the file in
<filename> for lab2, the turnin command is entered as:
turnin -c troy -p lab2 <filename>
Lab Assignment 2
Due: Friday 9/10/2004 by 8:00 am
- Find the answers the following questions using a search
engine on the internet.
- What is a URL of a map that shows the real-time travel times
of the expressways in the Chicago area?
- What is a URL of a weather forecast for the UIC campus? Note:
the UIC campus is in zip code 60607.
- What book (give name and author) won the Hugo Award for a novel in
2001? What is a URL that contains this information?
- Which cities have hosted the Summer Olympics more than one time?
What is a URL that contains this information?
- What movie won the Academy Award (the Oscar) for best picture
in 1990? What is a URL that contains this information?
- Write your answer in a file on the Icarus system. Note the
use of "cut and paste" will be useful for getting the URL's into
the file.
- Using turnin, electronically submit your file for grading.
The file must be submitted before Friday 9/10/2004 at 8:00 am.