nerdexam
CompTIA

XK0-004 · Question #37

Which of the following commands would show the default printer on a Linux system?

The correct answer is B. lpq. lpq shows the current print queue status on the named printer. Jobs queued on the default destination will be shown if no printer or class is specified on the command-line. lpstat displays status information about the current classes, jobs, and printers. When run with no…

System Management

Question

Which of the following commands would show the default printer on a Linux system?

Options

  • Alpr
  • Blpq
  • Clpstat
  • Dlspci

How the community answered

(29 responses)
  • B
    93% (27)
  • C
    3% (1)
  • D
    3% (1)

Explanation

lpq shows the current print queue status on the named printer. Jobs queued on the default destination will be shown if no printer or class is specified on the command-line. lpstat displays status information about the current classes, jobs, and printers. When run with no arguments, lpstat will list active jobs queued by the current user. If there is no printing job on your printer, lpstat won't show you anything.

Topics

#lpstat#printing#lpq#print queue

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice