\documentclass[10pt,a4]{seminar}
\usepackage{rcs}

\RCS $Revision: 1.0 $


\usepackage[a4paper,landscape,scale=0.97,left=-10pt, right=10mm]{geometry}
\usepackage{calc,acro,alltt,key,xr,nick,color,multicol}
\externaldocument[lt-]%
{../../linux_training-plus-config-files-ossi/build/masterfile}

\usepackage[pdfpagemode=None,pdfauthor={Nick Urbanik}]{hyperref}

%\newcommand*{\labTitle}{Quick MC Quiz: End Module 4, Prep Module 5}
%\renewcommand*{\subject}{Operating Systems and Systems Integration}

\providecommand*{\RPM}{\acro{RPM}\xspace}
\providecommand*{\CD}{\acro{CD}\xspace}

%\setlength{\paperwidth}{260mm}
%\setlength{\paperheight}{310mm}

\makeatletter
\renewcommand\theenumii{\@Alph\c@enumii}
\makeatother
\newcommand*{\margin}{5mm}
\renewcommand*{\slideleftmargin}{\margin}
\renewcommand*{\sliderightmargin}{\margin}
%\renewcommand*{\slidetopmargin}{\margin}
\renewcommand*{\slidetopmargin}{\margin}
\renewcommand*{\slidebottommargin}{\margin}
%\renewcommand*{\slidetopmargin}{0pt}
%\renewcommand*{\slidebottommargin}{-50pt}

% Do not set paperwidth or paperheight.

%\setlength{\slidewidth}{297mm-2\margin}
%\setlength{\slideheight}{210mm-2\margin}
%\setlength{\slideheight}{210mm}

%\slideframe[]{none}
%\setlength{\slideframesep}{0pt}
\slidesmag{2}
%\setcounter{finalcolumnbadness}{10000}
%\setcounter{columnbadness}{10000}

\definecolor{light-blue}{rgb}{0.4,0.4,1}
\newcommand*{\gl}[1]{\textcolor{light-blue}{#1}} % good link
\newcommand*{\ex}[1]{\textcolor{green}{#1}} % executable file
\newcommand*{\bl}[1]{\colorbox{red}{\textcolor{white}{\textbf{#1}}}} % bad link

\begin{document}
\raggedright
\pagestyle{empty}
%\Large
%\tableofcontents
%\begin{slide}
\begin{center}
  \par\vspace*{\fill}\par
  \begin{minipage}[c]{0.8\textwidth}
    \centering {\Huge\sffamily\bfseries Any marks not recognised by
      the Optical Mark Recognition (OMR) machine will get ZERO marks
\par\vspace*{0.1\textheight}\par
Correct mistakes with an eraser, correction pen or white tape; it is
not enough to put a cross through the circle
\par\vspace*{0.1\textheight}\par
Errors in student number get ZERO marks}
  \end{minipage}
  \par\vspace*{\fill}\par
\end{center}
\clearpage
\par\vspace*{-15mm}\par
  \begin{center}
\bfseries
{\Large Operating Systems and Systems Integration \  Quick Quiz 2}
  \end{center}

\textbf{Do not refer to any printed material.\\  No talking or discussion is
allowed until the answer sheets are all collected.}
%\extraslideheight{0pt}
\enlargethispage*{2\baselineskip}
%\large%
\begin{multicols}{2}
%\setcounter{columnbadness}{10000}
\setcounter{unbalance}{2}
\paragraph{Review:}


\begin{enumerate}
\item A directory entry contains:
  \begin{enumerate}
  \item filename and mapping of file contents (data sectors)
  \item filename and inode number
  \item only the inode number and a pointer to the file contents
  \item A symbolic link to the actual filename and file contents
  \item At least: filename, modification, access and change timestamps,
    permissions, size, owner
  \end{enumerate}

\item A system administrator executes the command
\par\vspace*{-0.9\baselineskip}\par
\begin{alltt}
$ \textbf{ls -i *}
54903110 file1  54903109 file2
54903109 file3  54903111 \bl{file4}
\end{alltt}%$
  \begin{enumerate}
  \item \texttt{file1}, \texttt{file2} are hard links to the same
    file, \texttt{file4} is a symbolic link to \texttt{file1}
  \item \texttt{file2}, \texttt{file3} are hard links to the same
    file, \texttt{file4} is a symbolic link to \texttt{file1}
  \item \texttt{file1}, \texttt{file2} are hard links to the same
    file, \texttt{file4} is a dangling symbolic link
  \item \texttt{file1} is not a hard link to any of the other files
  \item \texttt{file2} is a copy of \texttt{file3}
  \end{enumerate}

\item To delete the last three directories in the pathname
  \path{/tmp/a/b/c}, you can do:
  \begin{enumerate}
  \item
\begin{alltt}
$ \textbf{rm -rf /tmp/a}
\end{alltt}%$
\item
\begin{alltt}
$ \textbf{cd /tmp;rmdir -p a/b/c}
\end{alltt}%$
\item
\begin{alltt}
$ \textbf{rmdir /tmp/a/b/c /tmp/a/b /tmp/a}
\end{alltt}%$
\item
\begin{alltt}\small
$ \textbf{rm -f /tmp/a/b/c;rm -f /tmp/a/b;rm -f /tmp/a}
\end{alltt}%$
\item All the other options
  \end{enumerate}
\end{enumerate}

\vspace*{-5mm}

\paragraph{Preparation:}

\begin{enumerate}
\setcounter{enumi}{3}
\item The \texttt{chmod} command is used to:
  \begin{enumerate}
  \item Change the \emph{user} ownership of a file
  \item Change the \emph{group} ownership of a file
  \item Change the \emph{access rights} of a file
  \item Change the \emph{link status} of a file
  \item Convert files to directories and directories to files
  \end{enumerate}

\item The \texttt{mount} command is:
  \begin{enumerate}
  \item used to make a filesystem available at a directory
  \item related to the file \texttt{/etc/fstab}
  \item able to make network file systems (\NFS) available locally
  \item able to make Microsoft Windows shares available locally
  \item All the other options
  \end{enumerate}
\end{enumerate}
\end{multicols}
%\end{slide}
\end{document}
