LPIC-1 System Administrator Exam 102, Part 2 of 2, version 5.0 102-500 Exam Practice Test

Page: 1 / 14
Total 234 questions
Question 1

What is Irue regarding the statement beginning with #. that is found in the first line of a script? (Choose TWO correct answers.)



Answer : B, C


Question 2
Question 3

What is true about the ntpdate command?



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 4

Which option in the chrony configuration file changes the initial interval of polls to a NTP server in order to speed up the initial synchronization?



Question 5

Which keyword must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file?



Answer : A

The keyword files must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file. The files service specifies that the local files, such as /etc/hosts, should be used as a source of information. The order of the services on the line determines the order in which those services will be queried, in turn, until a result is found. For example, if the hosts option is set to:

hosts: files dns

then the /etc/hosts file will be searched first, and if no match is found, the DNS server will be queried next. If the hosts option is set to:

hosts: dns files

then the DNS server will be queried first, and if no match is found, the /etc/hosts file will be searched next.Reference:

LPI 102-500 Exam Objectives, Topic 110: Network Fundamentals, Weight: 4, 110.3 Basic network troubleshooting

LPI 102-500 Study Guide, Chapter 10: Network Fundamentals, Section 10.3: Basic Network Troubleshooting, Page 125-126

nsswitch.conf: Name Service Switch configuration file

Topic 6, Security


Question 6
Question 7

The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory? (Provide the full path to the directory, without any country information)



Answer : A

The /usr/share/zoneinfo directory contains the binary time zone files that are used by the system to determine the local time for any region. The files are organized in subdirectories by continent, country, or ocean. Some files represent the standard time zones, while others may have historical or political variations. To set the system's timezone, one can create a symbolic link from /etc/localtime to the appropriate file in the /usr/share/zoneinfo directory. For example, to set the timezone to America/New_York, one can use the command sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime. Alternatively, one can use the timedatectl command to set the timezone without creating the link manually.Reference:

How to Set or Change the Time Zone in Linux | Linuxize

4 Ways to Change the Timezone in Linux - wikiHow


Page:    1 / 14   
Total 234 questions