PrepAway - Latest Free Exam Questions & Answers

What command should you use to print file1 to printer2?

Your system is configured with a local print spooler called printer1 and has access to a remote print spooler called printer2. Your default printer is printer1.

What command should you use to print file1 to printer2?

PrepAway - Latest Free Exam Questions & Answers

A.
lp printer2 file2

B.
lp file1 printer2

C.
lp p printer2 file1

D.
lpr p printer2 file1

E.
lp dprinter2 file1

Explanation:

As you are not printing to your default printer you will need to specify the printer via the d option.
The p option is used to enable notification when the print job has completed. See man page extract below. None of the answers given are correct.
The answer should be lp dprinter2 file1
-p Enables notification on completion of the print request.
Delivery of the notification is dependent on additional software.

2 Comments on “What command should you use to print file1 to printer2?


Leave a Reply