Computer Science Department
College of Arts and Sciences
In this problem, we will take you on a quick tour through some of
UNIX's simple commands. The solution to this problem consists of your
written answers to the boldfaced questions in all parts below, and the
printout that you will obtain from part m below.
Log in as described in the ``logging in'' section of Problem
#4 in Homework #1.
At the UNIX prompt type ethics. Read and keep in
mind what comes out on the screen! Where should violations of the
stated guidelines be reported?
- c. At the UNIX prompt type man cal to find out about
the ``cal'' program. What is so special about September 1752?
Also, use ``man'' to look at the ``script'' command. How does
the -a option modify the behaviour of the ``script'' command?
- d. How many people in Boston University have ``Churchill'' as
their last name? Use the ph churchill command to find
- e. At the UNIX prompt type script hw2-prob1.script to
start a script file of your session.
- f. At the UNIX prompt type date to get the date and
- f. At the UNIX prompt type csmail to find out which
CS mailing lists you are on. Note: ``cs101b1'' should be the
only mailing list to which you are subscribed. If that is not the
case, then you need to type csmail -a cs101b1 at the Unix
prompt to add yourself to the class mailing list.
- h. Find out who is using CSA by typing
finger @csa at the UNIX prompt.
- i. Display the calendar for the year in which you were born
using the ``cal'' command. For example, if you are born in 1974, type
cal 1974. What day of the week were you born?
- j. Use the calc command (interactively) to compute
12+23/7 and to compute (12+23)/7.
- k. Using the webster command, display all the 13-letter
words in the English language that start with an ``x'' and end with an
``a''. Also, find out all the words in the English language that
start with a ``w'', end with ``nt'' and contain a ``c''. Also, look up the
meaning of ``automaton''.
- l. End the script of your session (that started in step e.
above) by typing exit.
- m. Get a printout of your script file from one of the printers
in the lab. At the UNIX prompt type lpr -Pboris
hw2-prob1.script to get the printout on printer ``boris''.
- n. How many lines, words, and characters are there in the
script you obtained in part l? Type wc
hw2-prob1.script to find out.
In this problem you will go through the process of reading and
sending email. There are many programs that one could use to send and
receive Electronic Mail. Check the ``Web Resources'' Web Pages for a
discussion of such programs. For the purposes of this problem, it does
not matter which program you use.
On Monday September 15, 1997, a personal email message will
be sent to each student on the mailing list for this class.
Note: You are on the mailing list for this class if you have executed
the csmail -a cs101b1 command at the Unix prompt of CSA (see
problem 1 above for a command that lists all the CS mailing lists you
are on). Read that message and then proceed to the next question.
Compose an email message and send it to
``email@example.com''. Your email message should include the
secret code that will be emailed to you as part of the message
you get in question a. above.
Give short answers (on paper) for the following questions on materials
covered in the lectures. Note: The answers to some of the
questions below were exclusively covered in the class (i.e. not in the
What is the difference between a ``program'' and a
Using an example, explain what is meant by the ``the
management of concurrent process executions'' by a multiprocessing Operating System.
What is meant by ``primary memory'', ``secondary memory''
and ``virtual memory''.
What is meant by a ``multi-user'' Operating System? How is
that different from a ``multiprocessing''?
Could a ``single-user'' Operating System be also a
multiprocessing Operating System? Explain your answer.
What makes it necessary for ROM to be part of a computer
Created on: 1997.08.01
Updated on: 1997.09.02
Maintainer: Azer Bestavros