Lpi General Linux, Part 2 - 117-102 Exam Practice Test

Question 1
CORRECT TEXT
Your IP address is 1.2.3.3. Which command would add a default gateway using the network 1.2.3.4?
Correct Answer:
route add default gw 1.2.3.4
Question 2
When using /etc/ppp/peers/* files, which of the following is true:

Correct Answer: D
Question 3
You want to change the aging information in the /etc/shadow file. What is the best utility to use to do this?

Correct Answer: E
Question 4
You found these lines in the modules.dep file:
/lib/modules/2.2.5-15smp/fs/msdos.o:
/lib/modules/2.2.5-15smp/fs/fat.o
Which of the following is true?

Correct Answer: C
Question 5
Which command would you use to apply the changes in a diff file to your existing kernel source?

Correct Answer: C
Question 6
CORRECT TEXT
You just installed a new system, but before you create any new users you want to ensure they have a subdirectory bin/ in their home directory. To ensure this directory is automatically created each time you add a new user, in what subdirectory should you create the directory?
Correct Answer:
/etc/skel
Question 7
On a system using shadowed passwords, the most correct permissions for /etc/passwd are ___ and the most correct permissions for /etc/shadow are ___.

Correct Answer: D
Question 8
CORRECT TEXT
What command would create the following output without using any arguments or options?
Module Size Used by nls_iso8859-1 2880 0 (autoclean)
nls_cp437 4384 0 (autoclean) ....
Correct Answer:
lsmod
Question 9
Which ONE of the following lines from /etc/X11/xorg.conf indicates that fonts can be found on a font server?

Correct Answer: E
Question 10
When you start the X Window System, which series of programs and/or scripts would most closely describe the start-up process?

Correct Answer: A
Question 11
CORRECT TEXT
You use the public NTP server time.nist.gov to make sure your system clock is accurate before using it to adjust your hardware clock. Complete the following command to accomplish this:
______ time.nist.gov
Correct Answer:
ntpdate
With the command ntpdate time.nist.gov you can set your clock.
Question 12
Which of the following commands is used to test if the syntax of Apache's configuration files are correct?

Correct Answer: B
Question 13
The following output shows an excerpt from a standard network configuration file: time 37/tcp timserver time 37/udp timeserver rlp 39/udp resource # resource location name 42/udp nameserver whois 43/tcp nickname # usually to sri-nic domain 53/tcp domain 53/udp mtp 57/tcp # deprecated bootps 67/udp # bootp server bootpc 68/udp # bootp client tftp 69/udp Which file could this be from?

Correct Answer: E
Question 14
CORRECT TEXT
Where should you put the .pinerc file so that all new users get it as part of their initial creation? Type the full path of the directory.
Correct Answer:
/etc/skel