Free 102-500 Exam Braindumps
LPIC-1 Exam 102, Part 2 of 2, version 5.0 Questions 101–105 (page: 22)

Updated On: 10-Feb-2026

Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)

  1. hwclock,
    /sbin/hwclock,
    /usr/sbin/hwclock

Answer(s): A

Explanation:

The command that is used to sync the hardware clock to the system clock is:
hwclock --systohc
This command copies the current system time to the hardware clock, which runs even when the system is shut down. It is equivalent to the command hwclock -w12. The hardware clock is also called the BIOS clock or the RTC (Real Time Clock)3.



Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.)

  1. mailq,
    /usr/bin/mailq,
    sendmail -bp,
    /usr/sbin/sendmail -
    bp, /usr/lib/sendmail
    -bp,

Answer(s): A

Explanation:

sendmail, /usr/sbin/sendmail, /usr/lib/sendmail

The command that is used to list the contents of the MTA's mail queue is mailq12. This command is available with all MTAs, such as sendmail, postfix, exim, etc12. The mailq command prints the mail queue, which is the list of messages that are waiting to be sent12. The output of the mailq command shows the queue ID, size, time, sender, and recipient of each message12. The mailq command can also take various options to modify the output, such as -v for verbose mode, -Ac for mail submission queue, -qL for lost items, and -qQ for quarantined items3.


Reference:

1: mailq Command in Linux with Examples - GeeksforGeeks
2: mailq Command Examples in Linux ­ The Geek Diary
3: linux - How to see entire sendmail queue? - Server Fault



Please specify the top directory containing the configuration files for the CUPS printing system.
(Specify the full path to the directory.)

  1. /etc/cups,
    /etc/cups/

Answer(s): A

Explanation:

The top directory containing the configuration files for the CUPS printing system is /etc/cups. This directory stores various files that control the behavior and functionality of the CUPS scheduler, cupsd (8), such as cups-files.conf (5), cupsd.conf (5), mime.convs (5), mime.types (5), printers.conf (5), and subscriptions.conf (5). The /etc/cups directory also contains subdirectories for classes, interfaces, ppd, and ssl, which store information about printer classes, device interfaces, printer drivers, and encryption certificates, respectively12. The /etc/cups directory is part of the LPI's multi-level Linux professional certification program, and it is covered in the topic 105.5 Print service of the exam 102 objectives3.


Reference:

1: cups-files (5) - Linux Manuals
2: cupsd.conf - server configuration file for cups
3: Exam 102 Objectives



Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

  1. lpd
  2. lpp
  3. lpq
  4. lpr

Answer(s): D

Explanation:

The lpr command is a legacy program provided by CUPS for sending files to the printer queues on the command line. It is one of the Berkeley (lpr) printing commands that CUPS supports for compatibility with other Unix-like systems. The lpr command accepts one or more filenames as arguments and sends them to the default or specified printer. It also supports several options to control the printing process, such as the number of copies, the page size, the orientation, and the priority. The lpr command is equivalent to the lp command, which is one of the System V (lp) printing commands that CUPS also supports. However, the lp command has more options and features than the lpr command, and is recommended for use with CUPS.


Reference:

Command-Line Printing and Options - CUPS
Command-Line Printer Administration - CUPS
Linux cups tutorial for beginners - Linux Tutorials - Learn Linux ... CUPS Command-Line Utilities - Configuring and Managing ... - Oracle



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

  1. *.* /dev/tty12
  2. /var/log/messages | /dev/tty12
  3. | /dev/tty12
  4. syslog tty12
  5. mail.* /dev/tty12

Answer(s): A

Explanation:

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 page
2: Beginner's Guide to Syslogs in Linux [Real World Examples]



Viewing page 22 of 48
Viewing questions 106 - 110 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!