ExamGecko
Home Home / LPI / 102-500

LPI 102-500 Practice Test - Questions Answers, Page 12

Question list
Search
Search

What command can be used to generate syslog entries of any facility and priority? (supply just the command name without a path)

A.
logger
A.
logger
Answers
Suggested answer: A

You need to pause the CUPS printer HPLaserjet4, and you want to cancel all print jobs with a message, "hello". Which command will do this?

A.
cupsreject -c -r hello HPLaserjet4
A.
cupsreject -c -r hello HPLaserjet4
Answers
B.
cupsreject -p -m hello HPLaserjet4
B.
cupsreject -p -m hello HPLaserjet4
Answers
C.
cupsdisable -c -r hello HPLaserjet4
C.
cupsdisable -c -r hello HPLaserjet4
Answers
D.
cupsdisable -p -m hello HPLaserjet4
D.
cupsdisable -p -m hello HPLaserjet4
Answers
Suggested answer: C

What is pool.ntp.org?

A.
A deprecated feature for maintaining system time in the Linux kernel
A.
A deprecated feature for maintaining system time in the Linux kernel
Answers
B.
A website which provides binary and source packages for the OpenNTPD project
B.
A website which provides binary and source packages for the OpenNTPD project
Answers
C.
A virtual cluster of various timeservers
C.
A virtual cluster of various timeservers
Answers
D.
A community website used to discuss the localization of Linux
D.
A community website used to discuss the localization of Linux
Answers
Suggested answer: C

On a dual boot system, every time the system is booted back into Linux the time has been set backward by one day. Which of the following commands will correct the problem?

A.
date -d '+ 1 day'
A.
date -d '+ 1 day'
Answers
B.
hwclock --systohc --localtime
B.
hwclock --systohc --localtime
Answers
C.
ntpdate pool.ntp.org
C.
ntpdate pool.ntp.org
Answers
D.
time hwclock
D.
time hwclock
Answers
Suggested answer: B

Which file, when using Sendmail or a similar MTA system, will allow a user to redirect all their mail to another address and is configurable by the user themselves?

A.
/etc/alias
A.
/etc/alias
Answers
B.
~/.alias
B.
~/.alias
Answers
C.
/etc/mail/forwarders
C.
/etc/mail/forwarders
Answers
D.
~/.forward
D.
~/.forward
Answers
E.
~/.vacation
E.
~/.vacation
Answers
Suggested answer: D

What command should be used to print a listing of email in the system's mail queue?

A.
lpq
A.
lpq
Answers
B.
mailq
B.
mailq
Answers
C.
mlq
C.
mlq
Answers
D.
sendmail -l
D.
sendmail -l
Answers
Suggested answer: B

What entry can you add to syslog.conf file to have all syslog messages generated by your system go to virtual console 12?

A.
*.* /dev/tty12
A.
*.* /dev/tty12
Answers
B.
/var/log/messages | /dev/tty12
B.
/var/log/messages | /dev/tty12
Answers
C.
| /dev/tty12
C.
| /dev/tty12
Answers
D.
syslog tty12
D.
syslog tty12
Answers
E.
mail.* /dev/tty12
E.
mail.* /dev/tty12
Answers
Suggested answer: A

Explanation:

Topic 5, Networking Fundamentals

What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

A.
route del default
A.
route del default
Answers
B.
ifconfig unset default
B.
ifconfig unset default
Answers
C.
netstat -r default
C.
netstat -r default
Answers
D.
ip route del default
D.
ip route del default
Answers
E.
sysctl ipv4.default_gw=0
E.
sysctl ipv4.default_gw=0
Answers
Suggested answer: A, D

What is the purpose of the nsswitch.conf file?

A.
It is used to configure where the C library looks for system information such as host names and user passwords.
A.
It is used to configure where the C library looks for system information such as host names and user passwords.
Answers
B.
It is used to configure network protocol port numbers such as for HTTP or SMTP.
B.
It is used to configure network protocol port numbers such as for HTTP or SMTP.
Answers
C.
It is used to configure LDAP authentication services for the local system.
C.
It is used to configure LDAP authentication services for the local system.
Answers
D.
It is used to configure which network services will be turned on during the next system boot.
D.
It is used to configure which network services will be turned on during the next system boot.
Answers
Suggested answer: A

With IPv6, how many bits have been used for the interface identifier of an unicast address? (Specify the number using digits only.)

A.
64
A.
64
Answers
Suggested answer: A
Total 194 questions
Go to page: of 20