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.
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
(59 responses)- A2% (1)
- B3% (2)
- C92% (54)
- D3% (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.
`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.
`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`.
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.
`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
Community Discussion
No community discussion yet for this question.