\documentclass[11pt,a4]{seminar} \usepackage{rcs} \RCS $Revision: 1.0 $ %\usepackage[a4paper,landscape,scale=0.95]{geometry} \usepackage{calc,acro,alltt,key,xr,nick,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} \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} % Do not set paperwidth or paperheight. \setlength{\slidewidth}{297mm-2\margin} \setlength{\slideheight}{210mm-2\margin} \slideframe[]{none} %\setlength{\slideframesep}{0pt} \slidesmag{2} %\setcounter{finalcolumnbadness}{10000} \setcounter{columnbadness}{10000} \begin{document} \pagestyle{empty} %\Large %\tableofcontents \begin{slide} \vspace*{-15mm} \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} %\large% \begin{multicols}{2} \setcounter{columnbadness}{10000} \setcounter{unbalance}{3} \paragraph{Review:} \begin{enumerate} \item Which of the following commands can list all files in \path{/etc} and below, showing their types? \begin{enumerate} \item \begin{alltt} $ \texttt{find /etc | file} \end{alltt}%$ \item \begin{alltt} $ \texttt{file /etc/* | find -type} \end{alltt}%$ \item \begin{alltt} $ \texttt{find /etc | xargs file} \end{alltt}%$ \item \begin{alltt} $ \texttt{file --replace -exec find /etc} \end{alltt}%$ \end{enumerate} \item Select one fact about the \texttt{cpio} and/or \texttt{tar} commands: \begin{enumerate} \item Both can create an archive of files \item \RPM{}s are just \texttt{tar} files \item \texttt{tar} must always read filenames from standard input \item \texttt{cpio} is more widely used than \texttt{tar} \end{enumerate} \item The command: \texttt{ldd /bin/bash} shows: \begin{enumerate} \item \begin{alltt} not a dynamic executable \end{alltt} \item shared libraries that \texttt{/bin/bash} is linked to \item no output \item an error message \end{enumerate} %% Explain why you might use \texttt{tar} and when you might use %% \texttt{cpio}. State \emph{TWO} applications of each. %% \item Why might you use \texttt{xargs}? %% \item State \emph{ONE} reason each for using \texttt{top}, %% \texttt{vmstat} and \texttt{ldd}. \end{enumerate} \paragraph{Preparation:} \begin{enumerate} \setcounter{enumi}{3} \item Common filesystem types on Linux include: \begin{enumerate} \item cdfilesys \item apache \item ext3 \item bash \end{enumerate} \item An \emph{absolute filename} always begins with: \begin{enumerate} \item a dot: ``\texttt{.}'' \item a slash: ``\texttt{/}'' \item a double dot: ``\texttt{..}'' \item a tilde: ``$\sim$'' \end{enumerate} \end{enumerate} \end{multicols} \end{slide} \end{document}