Chapter 23. Exam 102 Practice Test
Exam 102 consists of approximately 72 questions. Most are multiple-choice single-answer, a few are multiple-choice multiple-answer, and the remainder are fill-in questions. No notes or other materials are permitted, and you have 90 minutes to complete the exam. The answers are provided at the end of this chapter.
Questions
What section of the online user's manual and command reference holds administrative (not user) commands? Select one.
Section 1
Section 2
Section 8
Section n
Section s
In the bash shell, entering the !! command has the same effect as which one of the following?
Ctrl-P and Enter
Ctrl-N and Enter
Ctrl-U and Enter
!-2
!2
Name the command that displays pages from the online user's manual and command reference.
Which of the following commands displays the comments from a bash script? Select all that apply.
find "^#" /etc/rc.d/rc.local
sed '/^#/ !d' /etc/rc.d/init.d/httpd
grep ^# /etc/rc.d/init.d/httpd
grep ^# /etc/passwd
locate "^#" /etc/skel/.bashrc
Which one of the following answers creates an environment variable
VAR1
, present in the environment of a bash child process?VAR1="fail" ; export VAR1
VAR1="fail" \ export VAR1
VAR1="fail"
set VAR1="fail" ; enable VAR1
export VAR1 \ VAR1="fail"
Name the full path and name of the file that holds most of the information on system user groups.
Which one of the following outcomes results from the following command?
#
chmod g+s /home/software
The SUID bit will be set for /home/software.
The SGID bit ...
Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.