Name: ____________________________

MidTerm -- CS 495

Init

  1. How do you change to runlevel 2? assume you have root privliges ______________________
  2. Suppose that /etc/inittab has the line
    id:234:respawn:/sbin/getty VC tty3
    and the getty dies. What will init do? __________________________

Files and Filesystems

  1. (True/False) You need read permission to execute a binary file. In other words, you need read permission on /bin/ls to run /bin/ls.
  2. Which filenames will get mached by the file pattern ?[A-z]*4*
  3. a_boy_4_you        4_the_boys  boys_4_girls    4ever    4and4and4      
  4. What command will tell you how much free disk space you have? ______________

Command Line

  1. What command would rename a file "blonde" into a file "brown"? ___________________________________________
  2. What command will tell me if the disk is full? _________________________________
  3. What command will copy a file name "giger" into a new name "death"?
    _________________________________________________________
  4. How do I search for all lines in the file "script" containing "Bundy"?
    _______________________________________________________________________
  5. How do I get help on the command cpio? _____________________________________

Processes and Signals

  1. How do I find out what processes are running on my computer (ALL PROCESSES)? ________________
  2. How do I kill process number 47? __________________________________
  3. Who got Doom working on our system (hint: not me!!)? ____________________________
  4. What signal does ^Z send? ___________________________________________
  5. (1/2) If I run emacs, and then run another emans without quitting the first, how many emacs processes are there?

YP/NYS/NIS+

  1. (True/False) An NIS client can work with an NIS+ server?
  2. All clients of the same NIS server MUST share a common (circle all that apply):
  3. nis domain name      ip address                       operating system version
    root password        hardware configuration           fasination for Elvis Presley
  4. (Yes/No) Must NIS/NYS clients have a directory called /var/yp?
  5. Why do we run YP/NYS? _____________________________________________________
    __________________________________________________________________________
    __________________________________________________________________________

Printing

  1. What is the spool directory used for? ______________________________________________
    _____________________________________________________________________________
  2. (Worth two points): How do you add a new printer Just list the steps in order?
    _____________________________________________________________________________
    _____________________________________________________________________________
    _____________________________________________________________________________
    _____________________________________________________________________________
    _____________________________________________________________________________
  3. (Yes/No) Can you add a new remote printer without rebooting the whole (local) computer?

NFS

  1. Add to /etc/fstab (as shown below) to automatically mount al's /shoe/sales directory onto the local directory /stupid on every reboot from now on.
  2. /dev/sda1           /              ext2         rw       0 0
    /dev/sda2           /WEENIE_DOS    dos          rw       0 0
    __________________________________________________________________________
  3. (Worth zero points) Name any South American nation that does NOT touch Brazil.____________________________
  4. (Yes/No)Can you access an NFS mounted directory without a network connection?

NEW USER ACCOUNTS

How do you make a new user account? This is worth three points. partial credit is very possible, so if you only know part of the answer, try anyway.


  1. _________________________________________________________________________________
    _________________________________________________________________________________
    _________________________________________________________________________________
    _________________________________________________________________________________
    _________________________________________________________________________________
    _________________________________________________________________________________