nerdexam
CompTIA

220-1102 · Question #543

A technician is setting up a printer on a Linux workstation. Which of the following commands should the technician use to set the default printer?

The correct answer is D. lpoptions. To configure printer options, including setting the default printer on a Linux system, the lpoptions command is the appropriate tool.

Operating Systems

Question

A technician is setting up a printer on a Linux workstation. Which of the following commands should the technician use to set the default printer?

Options

  • Alpr
  • Blspool
  • Clpstat
  • Dlpoptions

How the community answered

(50 responses)
  • A
    10% (5)
  • B
    4% (2)
  • C
    2% (1)
  • D
    84% (42)

Why each option

To configure printer options, including setting the default printer on a Linux system, the lpoptions command is the appropriate tool.

Alpr

The lpr command is used to send print jobs to the printer, not to configure printer settings or set the default.

Blspool

lspool is not a standard Linux command for managing printers; the command lpstat is used to display CUPS status information, including print queues.

Clpstat

The lpstat command displays the status of the CUPS system, such as available printers, print jobs, and current status, but it does not configure the default printer.

DlpoptionsCorrect

The lpoptions command is used in Linux to display or set printer options and defaults for CUPS (Common Unix Printing System). To set a default printer, a technician would use lpoptions -d printer_name.

Concept tested: Linux printer configuration commands

Source: https://man7.org/linux/man-pages/man1/lpoptions.1.html

Topics

#Linux commands#Printer configuration#lpoptions#Default printer

Community Discussion

No community discussion yet for this question.

Full 220-1102 Practice