Review Exercise 1
Sobell, Chapter 1 (pg 13)
Sobell, Chapter 2 (pg 39)
Due Date: 1/18/02


Please complete the following Review Exercises.
Place your answers underneath each question using a
Unix text editor.  Turn in your answers as follows: turnin ex1 exercise1.txt 
In order to use the turnin command, follow the instructions below. With your favorite text editor, edit your .login file (found in your home directory). Search for the first command which sets your path (it will look like this: set path = ( /usr/ucb \ ) Add the line: ~h597/bin to the list of directories which make up your path. Each line must end with a '\' which just says to continue the line. This ~h597/bin directory must be in your path in order to run the turnin command, since turnin is found in ~h597/bin. Type: source .login after you've saved the changes to your .login file. The source .login executes all the commands in the .login file which will essentially reset your path. The command: which turnin should now return ~h597/bin/turnin if you were successful. You can now run turnin from any directory.
1. What is a multiuser system?  What are they successful?

2. In what language is Solaris written?  What does the language
   have to do with the success of Unix? 

3. What is a utility program?

4. What is a shell?

5. Why is the Solaris filesystem referred to as a hierarchical (or treelike)
   filesystem?

6. What are the differences between the 'cat' and 'ls' utilities?
   What are the differences between 'pg' or 'more' and 'cat'?

7. Five of the following seven filenames contain special characters:
     "\abc
     "abc"
     'abc'
     ab*c
     !abc
     abc
     -f

   a. Show how to create files with these names. 
   b. Give commands to remove them.

8. You saw that man pages for 'write' appear in sections 1 and 2 of
   the system manual.  Explain how you can determine what sections of
   the system manual contain a manual page with a given name.

   a. using man

9. (a) List the files in the directory /usr/bin in reverse alphabetic
       order using both 'ls' and 'sort'.

   (b) Repeat part (a) and pipe the result to 'head' to display only
       the first 4 lines.

   (c) Repeat part (a) and pipe the result to 'tail' to display all
       but the first 3 lines.

10. Determine the total number of files in the /usr/bin directory
    using both 'ls' and 'wc'.

11. You will receive an email message from user h597.  Reply, incorporating
    the original message.