Next | Prev | Up | Top | Contents | Index

Changing the Default Printer Destination

The default printer destination for a system can be an individual printer or a printer class.You can set it by using the lpadmin command with the -d option. The system default must be set by the user. A destination must already exist on the lp system before you can designate it as the default destination. See "Adding a Printer" for setting up a printer.

The lp command determines a request's destination by checking for a -d option on the command line, which if present, takes precedence over any other established destination. If -d is not present, lp checks to see if the user's environment variable LPDEST is set. If LPDEST is set, it is used; if LPDEST is not set, then the request is routed to the default destination. Setting the environment variable LPDEST allows a user to have a default destination other than the system default.


Next | Prev | Up | Top | Contents | Index