CompTIA Linux+ (XK0-004) — Question 8
Which of the following commands would show the default printer on a Linux system?
Answer options
- A. lpr
- B. lpq
- C. lpstat
- D. lspci
Correct answer: C
Explanation
The correct command to display the default printer is 'lpstat', which provides information about the printer status and configuration. 'lpr' is used to print files, 'lpq' shows the printer queue, and 'lspci' lists PCI devices, none of which are relevant for showing the default printer.