nerdexam
Linux_Foundation

LFCS · Question #299

An administrator needs to pause the CUPS printer Laserjet4, and wants to cancel all print jobs with a message, "hello". Which of the following commands will do this?

The correct answer is C. cupsdisable -c -r hello Laserjet4. To pause a CUPS printer and cancel all its jobs with a message, the cupsdisable command with the -c and -r options is used.

Submitted by akirajp· Apr 18, 2026Operation of Running Systems

Question

An administrator needs to pause the CUPS printer Laserjet4, and wants to cancel all print jobs with a message, "hello". Which of the following commands will do this?

Options

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

How the community answered

(59 responses)
  • A
    2% (1)
  • B
    3% (2)
  • C
    92% (54)
  • D
    3% (2)

Why each option

To pause a CUPS printer and cancel all its jobs with a message, the `cupsdisable` command with the `-c` and `-r` options is used.

Acupsreject -c -r hello Laserjet4

`cupsreject` only prevents new jobs from being accepted by a printer; it does not pause the printer or cancel existing jobs, and the `-c` option is not standard for it.

Bcupsreject -p -m hello Laserjet4

`cupsreject` only prevents new jobs; it doesn't pause or cancel existing ones, and the options `-p` and `-m` are not the correct ones for canceling jobs with `cupsreject`.

Ccupsdisable -c -r hello Laserjet4Correct

The `cupsdisable` command pauses a specified printer, preventing it from accepting new jobs and processing existing ones. The `-c` option specifically cancels all current jobs on the printer, while the `-r "message"` option provides a reason for the printer's state change and job cancellation that is displayed to users.

Dcupsdisable -p -m hello Laserjet4

`cupsdisable` correctly pauses the printer, but the options `-p` and `-m` are not the standard options for canceling all jobs and providing a reason message; `-c` and `-r` are the correct options.

Concept tested: CUPS printer management (pause, cancel jobs)

Source: https://manpages.ubuntu.com/manpages/jammy/en/man8/cupsdisable.8.html

Topics

#CUPS#Printer management#cupsdisable#Print job control

Community Discussion

No community discussion yet for this question.

Full LFCS Practice