nerdexam
LPI

102-500 · Question #246

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?

The correct answer is C. cupsdisable -c -r hello HPLaserjet4. See the full explanation below for the reasoning.

Question

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?

Options

  • Acupsreject -c -r hello HPLaserjet4
  • Bcupsreject -p -m hello HPLaserjet4
  • Ccupsdisable -c -r hello HPLaserjet4
  • Dcupsdisable -p -m hello HPLaserjet4

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    80% (20)
  • D
    4% (1)

Community Discussion

4
Orla P.Orla P.Jun 26, 2026

The answer is C, cupsdisable -c -r hello HPLaserjet4. The key distinction the exam is testing here is between cupsdisable and cupsreject. Cupsreject tells the queue to stop accepting new jobs, but it does not pause the printer itself, so options A and B are out right away on that point alone. Cupsdisable is what actually pauses or disables the printer, and when you pair it with -c you get the cancel-all-jobs behavior, and -r lets you attach a reason string, which is where your "hello" message goes. Options D trips people up because -p and -m look plausible, but those are not the flags for this command, the correct ones are -c and -r as shown in C.

13
Bao N.Bao N.Jun 26, 2026

I kept second-guessing myself on this one and almost went with A because cupsreject sounds like it stops jobs, but cupsreject only blocks new jobs from entering the queue while cupsdisable actually pauses the printer itself, and the -c flag cancels existing jobs with -r letting you set the rejection message, so C is the one you want.

3
Imani T.Imani T.Jun 26, 2026

Thought B was it but cupsdisable pauses, cupsreject blocks new jobs, and -r sets the reason message.

0
Carlos M.Carlos M.Jun 26, 2026

C. The trap here is A, because cupsreject sounds like it rejects and cancels jobs, but it only stops the queue from accepting new ones, it does not pause the printer itself. cupsdisable is what actually pauses printing, and -c cancels existing jobs while -r sets the reason message, so cupsdisable -c -r hello HPLaserjet4 is the one you want.

0
Full 102-500 Practice