nerdexam
CompTIA

LX0-104 · 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 its current print jobs with a specific message, the cupsdisable command with the -c (cancel jobs) and -r (reason) options is used.

Administrative Tasks

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

(19 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    79% (15)
  • D
    11% (2)

Why each option

To pause a CUPS printer and cancel its current print jobs with a specific message, the `cupsdisable` command with the `-c` (cancel jobs) and `-r` (reason) options is used.

Acupsreject -c -r hello Laserjet4

`cupsreject` prevents a printer from accepting new jobs but does not cancel existing jobs by default. The `-c` and `-r` options are not standard for `cupsreject` in this context to cancel and provide a reason for existing jobs.

Bcupsreject -p -m hello Laserjet4

`cupsreject` is for rejecting new jobs. `-p` and `-m` are not standard options for `cupsreject` for pausing and messaging in this manner.

Ccupsdisable -c -r hello Laserjet4Correct

The `cupsdisable` command pauses a printer and prevents it from accepting new jobs. The `-c` option is used to cancel any pending jobs on the printer. The `-r` option allows the administrator to provide a reason for disabling the printer, which is then displayed to users.

Dcupsdisable -p -m hello Laserjet4

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

Concept tested: CUPS printer management-disabling and canceling jobs

Source: https://linux.die.net/man/8/cupsdisable

Topics

#CUPS#printer management#print jobs#command line tools

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice