Which command will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?
A. /bin/grep ^# foobar
B. /bin/grep -v ^# foobar
C. /bin/grep #$ foobar
D. /bin/grep -v #$ foobar
What program is needed to establish a PPP link to another computer?
A. pppd
B. wvdial
C. papd
D. kppp
What would the following line accomplish if run as root? chown -R bert /home/bert/*
A. Nothing, this command is invalid.
B. It would revoke bert's ownership of all files in /home/bert to bert.
C. It would change user ownership of all files in /home/bert to bert.
D. It would set the group ownership of the directory /home/bert to bert
E. It would set ownership of all files and subdirectories in /home/bert to bert
Which command is used to dump files in octal format?
A. od
B. octdump
C. dumpoct
D. cat -o
You are looking for an executable file foo. Select the command that would search for foo within directories set in the shell variable, PATH.
A. locate
B. which
C. find
D. query
E. whereis
Which of these commands allows you to use shared libraries that are in /usr/local/lib?
A. export LD_PRELOAD=/usr/local/lib
B. export LD_LIBRARY_PATH=/usr/local/lib
C. ldconfig /usr/local/lib
D. ldd /usr/local/lib
Which key do you press to switch to normal mode in vi?
A. Alt
B. Esc
C. Ctrl
D. Shift
Which directory contains additional information about installed packages?
A. /usr/share/documentation
B. /usr/local/share/documentation
C. /usr/local/doc
D. /usr/share/doc
E. /usr/packages/doc
Which of the following is true when hard-linked files are present?
A. The output of stat will report "hard" instead of "regular file"
B. The hard-linked files may not be empty
C. Both files will share the same inode
D. Issuing a long directory listing with ls -1 will indicate the link with "->"
E. The file permissions will be prefixed by an "h", eg. hrwxr-x-r-x
Which command will show you the contents of a gzip compressed tar archive?
A. gzip archive.tgz | tar xvf
B. tar ztf archive.tgz
C. gzip -d archive.tgz | tar tvf
D. tar cf archive.tgz