PrepAway - Latest Free Exam Questions & Answers

Which source does the lp command check first to determine where to send print jobs?

You use the command lp file1 to print file1. Which source does the lp command check first to determine where to send print jobs?

PrepAway - Latest Free Exam Questions & Answers

A.
The LPDEST environment variable.

B.
The PRINTER environment variable.

C.
The printer defined as the default in the $HOME/.printers file.

D.
The printer defined as the default in the /etc/printers.conf file.

Explanation:

The variable LPDEST is a user variable set in the local .cshrc, .profile or .kshrc files. This is the first to be checked. The PRINTER variable can also be used in the same manner but is checked after LPDEST


Leave a Reply