Free LPI 102-500 Exam Actual Questions

The questions for 102-500 were last updated On Feb 19, 2025

At ValidExamDumps, we consistently monitor updates to the LPI 102-500 exam questions by LPI. Whenever our team identifies changes in the exam questions,exam objectives, exam focus areas or in exam requirements, We immediately update our exam questions for both PDF and online practice exams. This commitment ensures our customers always have access to the most current and accurate questions. By preparing with these actual questions, our customers can successfully pass the LPIC-1 System Administrator Exam 102, Part 2 of 2, version 5.0 exam on their first attempt without needing additional materials or study guides.

Other certification materials providers often include outdated or removed questions by LPI in their LPI 102-500 exam. These outdated questions lead to customers failing their LPIC-1 System Administrator Exam 102, Part 2 of 2, version 5.0 exam. In contrast, we ensure our questions bank includes only precise and up-to-date questions, guaranteeing their presence in your actual exam. Our main priority is your success in the LPI 102-500 exam, not profiting from selling obsolete exam questions in PDF or Online Practice Test.

 

Question No. 1

Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)

Show Answer Hide Answer
Question No. 2

What is true about the ntpdate command?

Show Answer Hide Answer
Correct Answer: C

The ntpdate command is a tool used to synchronize the system date and time with the NTP (Network Time Protocol) server(s) specified as arguments. It can be run manually as necessary to set the system clock, or it can be run from a cron script to periodically update the system clock. The ntpdate command has the following syntax:

ntpdate [options] server [server ...]

The ntpdate command obtains a number of samples from each server and applies a subset of the NTP clock filter and selection algorithms to select the best one. It then adjusts the system clock either by stepping it (if the offset is larger than 0.5 seconds) or by slewing it (if the offset is smaller than 0.5 seconds). The ntpdate command can also be used to query the date and time from a server without setting the system clock by using the -q option.

The other statements are false because:

It is not the primary management command for the NTP time server. The primary management command for the NTP time server is ntpd, which is a daemon that runs continuously and disciplines the system clock using sophisticated algorithms.

It updates both the local system's date and time, not just the date. The ntpdate command sets the system date and time according to the configured timezone information.

It does not send the local system time to any remote NTP time servers. The ntpdate command only queries the time from the servers and does not transmit any time information to them.

It cannot be used by any user to set the user clock independently of the system clock. The ntpdate command must be run as root on the local host and it affects the system clock for all users.


Linux ntpdate Command Tutorial -- LinuxTect

ntpdate - set the date and time via NTP

How to Use NTPDATE to Sync Time in Ubuntu Linux? -- TheITBros

Question No. 4

What is the purpose of the nsswitch.conf file?

Show Answer Hide Answer
Correct Answer: A

The nsswitch.conf file is a configuration file that determines the sources and the order of the sources that are queried for various system databases, such as user information, group information, host names, network services, and more. The C library uses this file to look up various system information when a program or a command requests it. For example, when a user logs in, the C library will use the nsswitch.conf file to determine where to find the user's password, whether it is in the local /etc/passwd file, or in a remote LDAP server, or both. The nsswitch.conf file allows the system administrator to configure the system databases in a flexible and modular way.Reference:

[LPI Linux Essentials - Topic 106: The Linux Operating System]

[LPI Linux Administrator - Exam 102 Objectives - Topic 110: Security]

[Linux man page for nsswitch.conf]


Question No. 5

What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

Show Answer Hide Answer
Correct Answer: A

The entry that can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12 is A../dev/tty12. This entry consists of a selector field and an action field, separated by a space or a tab. The selector field specifies the pattern of facilities and priorities that match the action. The action field specifies the destination where the matching messages are sent. In this case, the selector field is., which means all facilities and all priorities. The action field is /dev/tty12, which is the device file for the console 12. This means that any syslog message generated by the system will be displayed on the console 12, regardless of its facility or priority.This can be useful for debugging or monitoring purposes, but it can also be very noisy and distracting, as it will show all kinds of messages, including debug, info, notice, warning, err, crit, alert, and emerg12.

The other options are not correct. Option B. /var/log/messages | /dev/tty12 is invalid, as it uses a pipe (|) character in the selector field, which is not allowed.The pipe character can only be used in the action field to indicate that the matching messages are piped to an external program1. Option C. | /dev/tty12 is also invalid, as it has an empty selector field, which is not allowed.The selector field must specify at least one facility and one priority1. Option D. syslog tty12 is also invalid, as it has a missing period (.) between the facility and the priority in the selector field, and a missing slash (/) before the device file in the action field.The correct syntax for this option would be syslog.* /dev/tty12, which would display only the messages with the syslog facility and any priority on the console 121. Option E. mail.* /dev/tty12 is valid, but it would not display all syslog messages generated by a system, but only the messages with the mail facility and any priority on the console 12.This would exclude the messages from other facilities, such as auth, cron, daemon, kern, user, etc1.Reference:1: syslog.conf (5) - Linux man page2: Beginner's Guide to Syslogs in Linux [Real World Examples]