Google News
logo
Linux - Quiz(MCQ)
Which is the correct syntax to print the file using the default printer in Linux?
A)
lp [printer_name] [path or filename]
B)
lp -a [printer_name] [path or filename]
C)
lp -d [printer_name] [path or filename]
D)
lp -d [path or filename] [printer_name]

Correct Answer :   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]​

Advertisement