\documentclass[12pt]{article}
\topmargin -10.8truemm
\textheight 218truemm
\oddsidemargin 0.0truemm
\evensidemargin 0.0truemm
\textwidth 165truemm
% remove all page numbers
\renewcommand{\thepage}{\mbox{}}
\begin{document}
\begin{center}
{\Large CSc 265---F96---Quiz 1 (Time: 20 min.)}
\end{center}
%
\begin{tabbing}
Student name:1\=\kill
Student name:\> \underline{\hspace{3.2in}}
\end{tabbing}
\noindent{\bf Note}:
\begin{itemize}
\item
Write your answers on this paper.
\item
For each of 1a--d, 2, and 3 below, assume that the current directory
is {\tt /home/csc265/kwic} with the contents shown on the transparency.
Also assume that you are logged in as user \verb+csc265+.
\item
Unix commands may be terminated by a semicolon or newline.
\end{itemize}
\begin{enumerate}
\item (4 points)
What is the output of the following commands:
\begin{enumerate}
\item
\verb+cd WordTable; ls ..+
\vspace{5mm}
\item
\verb+mkdir d; cp *.html d; ls d+
\vspace{5mm}
\item
\verb+mkdir e; cp -r WordTable e; ls e+
\vspace{5mm}
\item
\verb+rm *.html; ls .+
\end{enumerate}
%
\item (2 points)
Suppose that the output of \verb+wc *.html+ is
\begin{verbatim}
    94     483    3050 functionalSpec.html
    73     196    1386 moduleGuide.html
   167     679    4436 total
\end{verbatim}
If \verb+cat *.html > foo+ is executed,
how many lines are in the file \verb+foo+?
%
\item (4 points)
Suppose that the \verb+Makefile+ in \verb+WordTable+ contains
\begin{verbatim}
driver: driver.o WordTable.o
    cc -o driver driver.o WordTable.o
driver.o: driver.c WordTable.h
    cc -c driver.c
WordTable.o: WordTable.c WordTable.h
    cc -c WordTable.c
\end{verbatim}
What Unix commands are executed by make if you issue
\begin{verbatim}
	cd WordTable; make
\end{verbatim}
\vspace{5mm}
Suppose that you modify file \verb+WordTable.c+ and reexecute \verb+make+?
What commands are executed this time?
\end{enumerate}
%
\end{document}
