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.
Question
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)- A5% (1)
- B5% (1)
- C79% (15)
- D11% (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.
`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.
`cupsreject` is for rejecting new jobs. `-p` and `-m` are not standard options for `cupsreject` for pausing and messaging in this manner.
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.
`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
Community Discussion
No community discussion yet for this question.