CEG 233: Linux and Windows

Fall 2010 // Final Exam // 120 minutes // 100 points

Login and use a Linux PC in the OSIS Lab while answering.  However, this is a closed book, closed notes exam. Surfing is disabled. Do not use pre-existing files.  Do not give or take help during the exam. Man-pages, KDE, konsole, re-booting into Windows or Linux, etc. are available.   Turnin your answers as in  turnin FI answers.txt.

  1. (8*5 points) Full scoring answers for the following need not be longer than five lines.
    1. Windows PS echo and Linux bash's echo are similar in some ways and different in others.  Give one example of their difference.
    2. Give a Linux command that changes the attributes of myInfo.txt so that it is not readable by anyone including the owner.
    3. Write in PowerShell an if statement that would print "Yes" if a file named fnm.txt exists, "No" otherwise.
    4. Assume d2 is a subdirectory of d1. Give a command in Linux that moves all the files of d2 into directory d1 unless it would overwrite a file.
    5. Give a useful example (other than help) command using net of Windows, and explain its output.
    6. What is an OS boot loader?
    7.  Explain how the IP address of a Windows PC can be set/changed.
    8. What is the purpose of /etc/resolv.conf in Linux?
  2. (10 points) Develop a bash procedure  that takes an .html file name as the only argument and produces a /tmp/temp.txt file that is the same as the .html file except all tags of the form <whatever> and </whatever> are deleted.
  3. (10 points) Develop a PowerShell function called listRecursively that recursively displays all the names of text files (i.e., only files with the .txt extension) in the directory given as the argument.
  4. (4*10 points) Answer in detail.
    1. Every computer system must have an OS. Defend this view.
    2. Contrast secure delete with ordinary delete.
    3. What is a cookie?
    4. Name and describe any three process states, including the one known as "ready-to-run".
Copyright © 2010 Prabhaker Mateti • Nov 16, 2010