Free 102-500 Exam Braindumps
LPIC-1 Exam 102, Part 2 of 2, version 5.0 Questions 106–110 (page: 23)

Updated On: 10-Feb-2026

What is true about the ntpdate command?

  1. It is the primary management command for the NTP time server.
  2. It updates the local system's date (i.e. day, month and year) but not the time (i.e. hours, minutes, seconds).
  3. It queries one or more NTP time servers and adjusts the system time accordingly.
  4. It sends the local system time to one or many remote NTP time servers for redistribution.
  5. It can be used by any user to set the user clock independently of the system clock.

Answer(s): C

Explanation:

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.


Reference:

Linux ntpdate Command Tutorial ­ LinuxTect ntpdate - set the date and time via NTP
How to Use NTPDATE to Sync Time in Ubuntu Linux? ­ TheITBros



What is true regarding the file ~/.forward?

  1. As it is owned by the MTA and not writable by the user, it must be edited using the editaliases command.
  2. After editing ~/.forward the user must run newaliases to make the mail server aware of the changes.
  3. Using ~/.forward, root may configure any email address whereas all other users may configure only their own addresses.
  4. When configured correctly, ~/.forward can be used to forward each incoming mail to more than one other recipient.

Answer(s): D

Explanation:

The file ~/.forward is a text file that contains one or more email addresses to which the incoming mail for the user will be forwarded123. The file is owned by the user and can be edited with any text editor123. The file does not require any special syntax or commands, just a list of email addresses separated by commas or newlines123. For example, if the user wants to forward their mail to alice@example.com and bob@example.com, they can create a ~/.forward file with the following content:
alice@example.com, bob@example.com
The MTA will read the ~/.forward file and send a copy of each incoming mail to the specified addresses123. Therefore, the correct answer is D. When configured correctly, ~/.forward can be used to forward each incoming mail to more than one other recipient. The other options are false regarding the file ~/.forward. The file is not owned by the MTA and does not need to be edited with the editaliases command, which is used to edit the system-wide aliases file, not the user-specific ~/.forward file4. The user does not need to run newaliases to make the MTA aware of the changes, as the MTA will check the ~/.forward file every time a mail is delivered to the user123. The newaliases command is used to rebuild the system-wide aliases database, not the user- specific ~/.forward file4. The file ~/.forward does not have any restrictions on the email addresses that can be used for forwarding, as long as they are valid and reachable123. The root user can also use the ~/.forward file to forward their mail, but it is not recommended for security reasons.


Reference:

1: LPIC 102 ­ Configure e-mail aliases and forwarding on Linux using MTA - TechViewLeo
2: topic 108.3: Mail transfer agent (MTA) basics - IBM Developer
3: 108.3 Mail Transfer Agent (MTA) basics - Linux Professional Institute ...
4: Linux At, Batch, Atq, Atrm Command Help and Examples - Computer Hope : [How to forward root's email to another email address - nixCraft]



Which of the following commands is used to rotate, compress, and mail system logs?

  1. rotatelog
  2. striplog
  3. syslogd --rotate
  4. logrotate
  5. logger

Answer(s): D

Explanation:

The logrotate command is a tool for rotating, compressing, and mailing system logs. It is designed to ease the administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large. Normally, logrotate is run as a daily cron job1. The logrotate command reads the configuration files specified on the command line or in the /etc/logrotate.conf and /etc/logrotate.d directories. These configuration files can set global options and specify log files to rotate and how to handle them. For example, the compress option enables compression of old log files, the mail option sends the log files to a specified email address before being rotated, and the rotate option sets the number of log files to keep12. The logrotate command is part of the LPI's multi-level Linux professional certification program, and it is covered in the topic 106.1 System logging of the exam 102 objectives3.


Reference:

1: logrotate(8) - Linux man page
2: logrotate command in Linux with examples - Linux command line tutorial
3: Exam 102 Objectives



To exclude all log messages of a given logging facility, you should use a logging priority of _____ .

  1. none

Answer(s): A

Explanation:

To exclude all log messages of a given logging facility, you should use a logging priority of none. This means that no messages from that facility will be logged, regardless of their severity level. For example, if you want to exclude all messages from the local0 facility, you can use local0.none in your syslog configuration file. This will prevent any messages from local0 from being written to any log file or destination that matches that selector12. The logging priority of none is part of the LPI's multi-

level Linux professional certification program, and it is covered in the topic 106.1 System logging of the exam 102 objectives3.


Reference:

1: logging - exclude syslog facility from all others - Server Fault
2: rsyslog.conf(5) - Linux manual page - man7.org
3: Exam 102 Objectives



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

  1. logger

Answer(s): A

Explanation:

The logger command can be used to generate syslog entries of any facility and priority. It is a shell command interface to the syslog system log module. It allows users to write messages to the system log from the command line or from a script. The logger command supports several options to specify the facility, priority, tag, message, and other attributes of the log entry. For example, the following command generates a log entry with the facility user and the priority info:
logger -p user.info "This is a test message"
The facility and priority can be any of the values defined in the syslog protocol, such as kern, mail, auth, local0, etc. for the facility, and emerg, alert, crit, err, warn, notice, info, debug, etc. for the priority. The default facility is user and the default priority is notice. The logger command can also read messages from standard input or from a file. For more information, see the logger man page or the logger - Linux man page online.


Reference:

Syslogs in Linux: Understanding Facilities and Levels
What are Syslog Facilities and Levels? - Trend Micro syslog-ng Open Source Edition 3.30 - Administration Guide Syslog Logging Guide: Advanced Concepts - CrowdStrike



Viewing page 23 of 48
Viewing questions 111 - 115 out of 234 questions


Post your Comments and Discuss LPI 102-500 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!