
|
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.
- (8*5 points) Full scoring answers for the following need
not be longer than five lines.
- Windows PS
echo and Linux bash's echo are similar in
some ways and different in others. Give one example of their
difference.
- Give a Linux command that changes the attributes
of
myInfo.txt so that it is not readable by anyone
including the owner.
- Write in PowerShell an if statement that would print "Yes" if a file
named
fnm.txt exists, "No" otherwise.
- 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.
- Give a useful example (other than help) command using
net of
Windows, and explain its output.
-
What is an OS boot loader?
- Explain how the IP address of a Windows PC can be set/changed.
- What is the purpose of
/etc/resolv.conf in Linux?
- (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.
- (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*10 points)
Answer in detail.
- Every computer system must have an OS. Defend this view.
- Contrast secure delete with ordinary delete.
- What is a cookie?
- Name and describe any three process states, including the one known as "ready-to-run".
Copyright © 2010
Prabhaker Mateti • Nov 16, 2010