Home »
MCQs »
Linux MCQs
Which is the correct syntax to print the file using the default printer in Linux?
38. Which is the correct syntax to print the file using the default printer in Linux?
- lp [printer_name] [path or filename]
- lp -a [printer_name] [path or filename]
- lp -d [printer_name] [path or filename]
- lp -d [path or filename] [printer_name]
Answer: C) lp -d [printer_name] [path or filename]
Explanation:
The correct syntax to print the file using the default printer in Linux is:
lp -d [Printer_name] [path or filename]