In compliance with the FHS, in which of the following places are man pages typically found?
A. /usr/share/man
B. /opt/man
C. /usr/doc/
D. /var/pkg/man
E. /usr/local/man
An administrator is looking for an executable file foo. Which of the following commands would search for foo within directories set in the shell variable, PATH?
A. locate
B. which
C. find
D. query
E. whereis
Which of the following commands 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
Which of the following commands will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?
A. cut -d: -f1,3 /etc/passwd
B. chop -c 1,3 /etc/passwd
C. tac 1-3 /etc/passwd
D. fmt -u /etc/passwd
Which of the following commands 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
After modifying LILO's configuration file, which of the following commands should be run for the changes to take effect?
A. kill -HUP `pid of lilo`
B. lilo-install
C. lilo
D. reboot
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
A. cat < myapp | cat > file1.log
B. myapp 0>and1 | cat > file1.log
C. myapp | cat > file1.log
D. myapp | tee file1.log
E. tee myapp file1.log
In compliance with the FHS, in which of the following places are man pages typically found?
A. /usr/share/man
B. /opt/man
C. /usr/doc/
D. /var/pkg/man
E. /usr/local/man
Which command lines would an administrator use to restrict the GNU find command to searching a particular number of subdirectories?
A. -s
B. -dirmax
C. --max-dirs
D. -maxdepth