Free 102-500 Exam Braindumps
LPIC-1 Exam 102, Part 2 of 2, version 5.0 Questions 111–115 (page: 24)

Updated On: 10-Feb-2026

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?

  1. cupsreject -c -r hello HPLaserjet4
  2. cupsreject -p -m hello HPLaserjet4
  3. cupsdisable -c -r hello HPLaserjet4
  4. cupsdisable -p -m hello HPLaserjet4

Answer(s): C

Explanation:

The command cupsdisable -c -r hello HPLaserjet4 will pause the CUPS printer HPLaserjet4 and cancel all print jobs with a message, "hello". The cupsdisable command is used to stop printers and classes, while the cupsenable command is used to start them. The -c option cancels all jobs on the named destination, and the -r option sets the message associated with the stopped state. The message will be displayed to the users who try to print to the paused printer. For example, the output of lpstat -p HPLaserjet4 after running the command will show:

printer HPLaserjet4 disabled since Wed 23 Jun 2023 11:54:03 AM UTC - hello
The other options are not correct. The cupsreject command is used to reject or accept jobs for a printer or class, not to pause or resume them. The -p and -m options are not valid for either cupsdisable or cupsreject. The correct syntax for cupsreject is:
cupsreject [ -E ] [ -U username ] [ -h server [:port] ] [ -r reason ] destination (s) The -E option forces encryption of the connection to the server, the -U option uses the specified username when connecting to the server, the -h option uses the specified server and port, and the -r option sets the message associated with the rejecting state123.


Reference:

1: cupsdisable(8) - Linux manual page
2: cupsreject(8) - Linux manual page
3: CUPS Administration - Page: 1.4 - Seite 3 » Raspberry Pi Geek



What is pool.ntp.org?

  1. A deprecated feature for maintaining system time in the Linux kernel
  2. A website which provides binary and source packages for the OpenNTPD project
  3. A virtual cluster of various timeservers
  4. A community website used to discuss the localization of Linux

Answer(s): C

Explanation:

C . pool.ntp.org is indeed a virtual cluster of various timeservers. It provides a reliable and easy-to- use NTP (Network Time Protocol) service for millions of clients worldwide. The pool.ntp.org project allows systems to synchronize their clocks with internet time servers, which are part of a large virtual cluster1.


Reference:

pool.ntp.org: the internet cluster of ntp servers, which explains the purpose and functioning of the pool.ntp.org project.
How do I setup NTP to use the pool?, which provides instructions on how to use pool.ntp.org for time synchronization.
NTP pool - Wikipedia, which offers additional information about the NTP pool and its role in time synchronization across the internet.



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?

  1. date -d '+ 1 day'
  2. hwclock --systohc --localtime
  3. ntpdate pool.ntp.org
  4. time hwclock

Answer(s): B

Explanation:

The command that will correct the problem of the time being set backward by one day on a dual boot system is hwclock --systohc --localtime. This command will set the hardware clock (RTC) to the current system time and use the local time standard instead of UTC12. This will prevent the time inconsistency issue that occurs when dual booting Linux and Windows, as Windows assumes that the hardware clock is using local time while Linux assumes that it is using UTC34. By using the same time standard for both operating systems, the time will be displayed correctly on both Linux and Windows.
The other commands are either invalid or ineffective for solving the problem. The date -d '+ 1 day' command will display the date and time one day ahead of the current system time, but it will not change the system time or the hardware clock5. The ntpdate pool.ntp.org command will synchronize the system time with an NTP server, but it will not affect the hardware clock or the time standard6. The time hwclock command will measure the time taken by the hwclock command, which will display the hardware clock time, but it will not change anything7.


Reference:

1: hwclock(8) - Linux man page
2: How to Fix Windows and Linux Showing Different Times When Dual Booting
3: Dual-Booting Linux Messed Up Windows Time? Here's How to Fix It
4: Wrong Time in Windows 10 After Dual Boot With Linux
5: date(1) - Linux man page
6: ntpdate(8) - Linux man page
7: time(1) - Linux man page



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?

  1. /etc/alias
  2. ~/.alias
  3. /etc/mail/forwarders
  4. ~/.forward
  5. ~/.vacation

Answer(s): D

Explanation:

The ~/.forward file is a file that users can create in their home directories to redirect mail or send mail using sendmail or a similar MTA system. The file contains a list of recipient addresses, which can be email addresses, file names, program names, or :include: files. The file must be owned by the user and have the read permission bit set for the owner. The file cannot be a symbolic link or have more than one hard link. The file is processed by sendmail when a recipient address selects a delivery agent with the F=w flag set. If the file contains a backslash, further processing is disabled and the message is delivered to the user's mail-spooling directory. If the file does not exist or cannot be read, it is silently ignored. The ~/.forward file is different from the /etc/aliases file, which is a system-wide file that maps aliases to one or more recipient addresses. The /etc/aliases file is maintained by the system administrator and requires running the newaliases command after any changes. The ~/.alias file is not a valid file for sendmail or similar MTA systems. The /etc/mail/forwarders file is not a standard file for sendmail or similar MTA systems. The ~/.vacation file is a file that contains a vacation message that is sent to the sender when the user is away. The ~/.vacation file is used in conjunction with the vacation program, which can be invoked from the ~/.forward file.



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

  1. lpq
  2. mailq
  3. mlq
  4. sendmail ­l

Answer(s): B

Explanation:

The mailq command prints the list of messages that are in the mail queue. The mail queue is where outgoing mail is stored until a receiving server connection is available. The mailq command is the same as the sendmail -bp command, which also prints the mail queue. The mailq command is part of the topic 108.3: Mail transfer agent (MTA) basics, which is one of the objectives of the LPI Linux Administrator - 102 exam12.


Reference:

1: https://learning.lpi.org/en/learning-materials/102-500/
2: https://www.lpi.org/our-certifications/exam-102-objectives/



Viewing page 24 of 48
Viewing questions 116 - 120 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!