\documentclass{ictlab} \RCS $Revision: 1.1 $ \usepackage{alltt,key,xr,answer2,cols} \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 \begin{document} %\Large %\tableofcontents %\large% Do not refer to any printed material. No talking or discussion is allowed until the answer sheets are all collected. \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{document}